Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: android_webview/browser/aw_browser_context.h

Issue 11896113: Add chrome-search: access from Instant overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet another rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "android_webview/browser/aw_download_manager_delegate.h" 10 #include "android_webview/browser/aw_download_manager_delegate.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "components/visitedlink/browser/visitedlink_delegate.h" 16 #include "components/visitedlink/browser/visitedlink_delegate.h"
17 #include "content/public/browser/browser_context.h" 17 #include "content/public/browser/browser_context.h"
18 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/browser/geolocation_permission_context.h" 19 #include "content/public/browser/geolocation_permission_context.h"
19 #include "net/url_request/url_request_job_factory.h" 20 #include "net/url_request/url_request_job_factory.h"
20 21
21 class GURL; 22 class GURL;
22 23
23 namespace components { 24 namespace components {
24 class VisitedLinkMaster; 25 class VisitedLinkMaster;
25 } // namespace components 26 } // namespace components
26 27
27 namespace content { 28 namespace content {
(...skipping 23 matching lines...) Expand all
51 // Called before BrowserThreads are created. 52 // Called before BrowserThreads are created.
52 void InitializeBeforeThreadCreation(); 53 void InitializeBeforeThreadCreation();
53 54
54 // Maps to BrowserMainParts::PreMainMessageLoopRun. 55 // Maps to BrowserMainParts::PreMainMessageLoopRun.
55 void PreMainMessageLoopRun(); 56 void PreMainMessageLoopRun();
56 57
57 // These methods map to Add methods in components::VisitedLinkMaster. 58 // These methods map to Add methods in components::VisitedLinkMaster.
58 void AddVisitedURLs(const std::vector<GURL>& urls); 59 void AddVisitedURLs(const std::vector<GURL>& urls);
59 60
60 net::URLRequestContextGetter* CreateRequestContext( 61 net::URLRequestContextGetter* CreateRequestContext(
61 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 62 content::ProtocolHandlerMap* protocol_handlers);
62 blob_protocol_handler,
63 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
64 file_system_protocol_handler,
65 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
66 developer_protocol_handler,
67 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
68 chrome_protocol_handler,
69 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
70 chrome_devtools_protocol_handler);
71 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 63 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
72 const base::FilePath& partition_path, 64 const base::FilePath& partition_path,
73 bool in_memory, 65 bool in_memory,
74 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 66 content::ProtocolHandlerMap* protocol_handlers);
75 blob_protocol_handler,
76 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
77 file_system_protocol_handler,
78 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
79 developer_protocol_handler,
80 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
81 chrome_protocol_handler,
82 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
83 chrome_devtools_protocol_handler);
84 67
85 AwQuotaManagerBridge* GetQuotaManagerBridge(); 68 AwQuotaManagerBridge* GetQuotaManagerBridge();
86 69
87 // content::BrowserContext implementation. 70 // content::BrowserContext implementation.
88 virtual base::FilePath GetPath() OVERRIDE; 71 virtual base::FilePath GetPath() OVERRIDE;
89 virtual bool IsOffTheRecord() const OVERRIDE; 72 virtual bool IsOffTheRecord() const OVERRIDE;
90 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 73 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
91 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 74 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
92 int renderer_child_id) OVERRIDE; 75 int renderer_child_id) OVERRIDE;
93 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 76 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
(...skipping 29 matching lines...) Expand all
123 106
124 scoped_ptr<components::VisitedLinkMaster> visitedlink_master_; 107 scoped_ptr<components::VisitedLinkMaster> visitedlink_master_;
125 scoped_ptr<content::ResourceContext> resource_context_; 108 scoped_ptr<content::ResourceContext> resource_context_;
126 109
127 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); 110 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
128 }; 111 };
129 112
130 } // namespace android_webview 113 } // namespace android_webview
131 114
132 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 115 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698