summaryrefslogtreecommitdiffstats
path: root/blimp/engine/browser/blimp_browser_context.h
diff options
context:
space:
mode:
authorkuan <kuan@chromium.org>2015-10-07 14:29:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-07 21:29:55 +0000
commitb4738da24a84691c302d2dfdf4aad772d44d5a63 (patch)
tree155679000d22ba4acb771d413284a331866a0d16 /blimp/engine/browser/blimp_browser_context.h
parentbdf351e541afa34f8fcf178a7f86ea548d436f6f (diff)
downloadchromium_src-b4738da24a84691c302d2dfdf4aad772d44d5a63.zip
chromium_src-b4738da24a84691c302d2dfdf4aad772d44d5a63.tar.gz
chromium_src-b4738da24a84691c302d2dfdf4aad772d44d5a63.tar.bz2
Revert of [Blimp] Adds a headless content shell as a blimp engine. It uses a dummy screen, and is a slimming … (patchset #11 id:200001 of https://codereview.chromium.org/1364463003/ )
Reason for revert: broke build: http://build.chromium.org/p/chromium.linux/builders/Linux%20GN%20Clobber/builds/6346 Original issue's description: > [Blimp] Adds a headless content shell as a blimp engine. It uses a dummy screen, and is a slimming down version of the content shell. > It loads google.com as the initial URL. > > BUG=533592 > > Committed: https://crrev.com/ce6219fba3471bb7b4d295127eb34e734d14f499 > Cr-Commit-Position: refs/heads/master@{#352902} TBR=wez@chromium.org,dtrainor@chromium.org,davidben@chromium.org,sky@chromium.org,mark@chromium.org,haibinlu@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=533592 Review URL: https://codereview.chromium.org/1397613002 Cr-Commit-Position: refs/heads/master@{#352949}
Diffstat (limited to 'blimp/engine/browser/blimp_browser_context.h')
-rw-r--r--blimp/engine/browser/blimp_browser_context.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/blimp/engine/browser/blimp_browser_context.h b/blimp/engine/browser/blimp_browser_context.h
deleted file mode 100644
index 0bb08cf..0000000
--- a/blimp/engine/browser/blimp_browser_context.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// 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 BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_
-#define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_
-
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "blimp/engine/browser/blimp_url_request_context_getter.h"
-#include "content/public/browser/browser_context.h"
-#include "content/public/browser/content_browser_client.h"
-#include "content/public/browser/resource_context.h"
-#include "net/url_request/url_request_job_factory.h"
-
-namespace net {
-class NetLog;
-}
-
-namespace blimp {
-namespace engine {
-
-class BlimpResourceContext;
-class PermissionManager;
-
-class BlimpBrowserContext : public content::BrowserContext {
- public:
- // Caller owns |net_log| and ensures it out-lives this browser context.
- BlimpBrowserContext(bool off_the_record, net::NetLog* net_log);
- ~BlimpBrowserContext() override;
-
- // content::BrowserContext implementation.
- scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
- const base::FilePath& partition_path) override;
- base::FilePath GetPath() const override;
- bool IsOffTheRecord() const override;
- net::URLRequestContextGetter* GetRequestContext() override;
- net::URLRequestContextGetter* GetRequestContextForRenderProcess(
- int renderer_child_id) override;
- net::URLRequestContextGetter* GetMediaRequestContext() override;
- net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
- int renderer_child_id) override;
- net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
- const base::FilePath& partition_path,
- bool in_memory) override;
- content::ResourceContext* GetResourceContext() override;
- content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
- content::BrowserPluginGuestManager* GetGuestManager() override;
- storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
- content::PushMessagingService* GetPushMessagingService() override;
- content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
- content::PermissionManager* GetPermissionManager() override;
-
- // The content of |protocol_handlers| is swapped into the returned instance.
- // Caller should take a reference to the returned instance via scoped_refptr.
- const scoped_refptr<BlimpURLRequestContextGetter>& CreateRequestContext(
- content::ProtocolHandlerMap* protocol_handlers,
- content::URLRequestInterceptorScopedVector request_interceptors);
-
- private:
- // Performs initialization of the BlimpBrowserContext while IO is still
- // allowed on the current thread.
- void InitWhileIOAllowed();
-
- scoped_ptr<BlimpResourceContext> resource_context_;
- bool ignore_certificate_errors_;
- scoped_ptr<content::PermissionManager> permission_manager_;
- bool off_the_record_;
- net::NetLog* net_log_;
- base::FilePath path_;
-
- DISALLOW_COPY_AND_ASSIGN(BlimpBrowserContext);
-};
-
-} // namespace engine
-} // namespace blimp
-
-#endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_CONTEXT_H_