1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Copyright (c) 2014 GitHub, Inc.
- // Use of this source code is governed by the MIT license that can be
- // found in the LICENSE file.
- #ifndef ATOM_APP_ATOM_CONTENT_CLIENT_H_
- #define ATOM_APP_ATOM_CONTENT_CLIENT_H_
- #include <set>
- #include <string>
- #include <vector>
- #include "brightray/common/content_client.h"
- namespace atom {
- class AtomContentClient : public brightray::ContentClient {
- public:
- AtomContentClient();
- virtual ~AtomContentClient();
- protected:
- // content::ContentClient:
- std::string GetProduct() const override;
- std::string GetUserAgent() const override;
- base::string16 GetLocalizedString(int message_id) const override;
- void AddAdditionalSchemes(
- std::vector<url::SchemeWithType>* standard_schemes,
- std::vector<url::SchemeWithType>* referrer_schemes,
- std::vector<std::string>* savable_schemes) override;
- void AddPepperPlugins(
- std::vector<content::PepperPluginInfo>* plugins) override;
- void AddServiceWorkerSchemes(
- std::set<std::string>* service_worker_schemes) override;
- void AddSecureSchemesAndOrigins(
- std::set<std::string>* secure_schemes,
- std::set<GURL>* secure_origins) override;
- private:
- DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
- };
- } // namespace atom
- #endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_
|