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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move AwResourceContext into anonymous namespace Created 7 years, 10 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
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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 content::RenderViewHost* render_view_host) OVERRIDE; 61 content::RenderViewHost* render_view_host) OVERRIDE;
62 virtual void GuestWebContentsCreated( 62 virtual void GuestWebContentsCreated(
63 content::WebContents* guest_web_contents, 63 content::WebContents* guest_web_contents,
64 content::WebContents* embedder_web_contents) OVERRIDE; 64 content::WebContents* embedder_web_contents) OVERRIDE;
65 virtual void RenderProcessHostCreated( 65 virtual void RenderProcessHostCreated(
66 content::RenderProcessHost* host) OVERRIDE; 66 content::RenderProcessHost* host) OVERRIDE;
67 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, 67 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context,
68 const GURL& effective_url) OVERRIDE; 68 const GURL& effective_url) OVERRIDE;
69 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, 69 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context,
70 const GURL& url) OVERRIDE; 70 const GURL& url) OVERRIDE;
71 virtual net::URLRequestContextGetter* CreateRequestContext(
72 content::BrowserContext* browser_context,
73 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
74 blob_protocol_handler,
75 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
76 file_system_protocol_handler,
77 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
78 developer_protocol_handler,
79 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
80 chrome_protocol_handler,
81 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
82 chrome_devtools_protocol_handler) OVERRIDE;
83 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
84 content::BrowserContext* browser_context,
85 const FilePath& partition_path,
86 bool in_memory,
87 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
88 blob_protocol_handler,
89 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
90 file_system_protocol_handler,
91 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
92 developer_protocol_handler,
93 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
94 chrome_protocol_handler,
95 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
96 chrome_devtools_protocol_handler) OVERRIDE;
71 virtual bool IsHandledURL(const GURL& url) OVERRIDE; 97 virtual bool IsHandledURL(const GURL& url) OVERRIDE;
72 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, 98 virtual bool IsSuitableHost(content::RenderProcessHost* process_host,
73 const GURL& url) OVERRIDE; 99 const GURL& url) OVERRIDE;
74 virtual bool ShouldTryToUseExistingProcessHost( 100 virtual bool ShouldTryToUseExistingProcessHost(
75 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; 101 content::BrowserContext* browser_context, const GURL& url) OVERRIDE;
76 virtual void SiteInstanceGotProcess( 102 virtual void SiteInstanceGotProcess(
77 content::SiteInstance* site_instance) OVERRIDE; 103 content::SiteInstance* site_instance) OVERRIDE;
78 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) 104 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance)
79 OVERRIDE; 105 OVERRIDE;
80 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, 106 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Cached version of the locale so we can return the locale on the I/O 266 // Cached version of the locale so we can return the locale on the I/O
241 // thread. 267 // thread.
242 std::string io_thread_application_locale_; 268 std::string io_thread_application_locale_;
243 269
244 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 270 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
245 }; 271 };
246 272
247 } // namespace chrome 273 } // namespace chrome
248 274
249 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 275 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698