2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-08-27 12:48:49 +00:00
|
|
|
// 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_
|
|
|
|
|
2014-08-27 13:16:45 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2014-08-27 12:48:49 +00:00
|
|
|
#include "brightray/common/content_client.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomContentClient : public brightray::ContentClient {
|
|
|
|
public:
|
|
|
|
AtomContentClient();
|
|
|
|
virtual ~AtomContentClient();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// content::ContentClient:
|
2015-01-10 01:24:36 +00:00
|
|
|
std::string GetProduct() const override;
|
2015-09-14 14:49:22 +00:00
|
|
|
std::string GetUserAgent() const override;
|
2015-01-10 01:24:36 +00:00
|
|
|
void AddAdditionalSchemes(
|
2014-08-27 12:48:49 +00:00
|
|
|
std::vector<std::string>* standard_schemes,
|
2015-01-10 01:24:36 +00:00
|
|
|
std::vector<std::string>* savable_schemes) override;
|
2015-04-28 15:45:58 +00:00
|
|
|
void AddPepperPlugins(
|
|
|
|
std::vector<content::PepperPluginInfo>* plugins) override;
|
2014-08-27 12:48:49 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_
|