| Index: headless/lib/headless_content_client.h
|
| diff --git a/chromecast/common/cast_content_client.h b/headless/lib/headless_content_client.h
|
| similarity index 50%
|
| copy from chromecast/common/cast_content_client.h
|
| copy to headless/lib/headless_content_client.h
|
| index f77a610614bcf467f74859d71bf3e3b16333ba9c..2fc816353890c9d650e054cfc5528c7cbcdc4411 100644
|
| --- a/chromecast/common/cast_content_client.h
|
| +++ b/headless/lib/headless_content_client.h
|
| @@ -1,24 +1,21 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROMECAST_COMMON_CAST_CONTENT_CLIENT_H_
|
| -#define CHROMECAST_COMMON_CAST_CONTENT_CLIENT_H_
|
| +#ifndef HEADLESS_LIB_HEADLESS_CONTENT_CLIENT_H_
|
| +#define HEADLESS_LIB_HEADLESS_CONTENT_CLIENT_H_
|
|
|
| #include "content/public/common/content_client.h"
|
| +#include "headless/public/headless_browser.h"
|
|
|
| -namespace chromecast {
|
| -namespace shell {
|
| +namespace headless {
|
|
|
| -std::string GetUserAgent();
|
| -
|
| -class CastContentClient : public content::ContentClient {
|
| +class HeadlessContentClient : public content::ContentClient {
|
| public:
|
| - ~CastContentClient() override;
|
| + explicit HeadlessContentClient(const HeadlessBrowser::Options& options);
|
| + ~HeadlessContentClient() override;
|
|
|
| // content::ContentClient implementation:
|
| - void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes,
|
| - std::vector<std::string>* saveable_shemes) override;
|
| std::string GetUserAgent() const override;
|
| base::string16 GetLocalizedString(int message_id) const override;
|
| base::StringPiece GetDataResource(
|
| @@ -27,9 +24,13 @@ class CastContentClient : public content::ContentClient {
|
| base::RefCountedStaticMemory* GetDataResourceBytes(
|
| int resource_id) const override;
|
| gfx::Image& GetNativeImageNamed(int resource_id) const override;
|
| +
|
| + private:
|
| + HeadlessBrowser::Options options_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(HeadlessContentClient);
|
| };
|
|
|
| -} // namespace shell
|
| -} // namespace chromecast
|
| +} // namespace headless
|
|
|
| -#endif // CHROMECAST_COMMON_CAST_CONTENT_CLIENT_H_
|
| +#endif // HEADLESS_LIB_HEADLESS_CONTENT_CLIENT_H_
|
|
|