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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android webview init fix merged in. Created 7 years, 3 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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/public/browser/certificate_request_result_type.h" 18 #include "content/public/browser/certificate_request_result_type.h"
19 #include "content/public/browser/file_descriptor_info.h" 19 #include "content/public/browser/file_descriptor_info.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "content/public/common/socket_permission_request.h" 21 #include "content/public/common/socket_permission_request.h"
22 #include "content/public/common/window_container_type.h" 22 #include "content/public/common/window_container_type.h"
23 #include "net/base/mime_util.h" 23 #include "net/base/mime_util.h"
24 #include "net/cookies/canonical_cookie.h" 24 #include "net/cookies/canonical_cookie.h"
25 #include "net/cookies/cookie_store.h"
25 #include "net/url_request/url_request_job_factory.h" 26 #include "net/url_request/url_request_job_factory.h"
26 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" 27 #include "third_party/WebKit/public/web/WebNotificationPresenter.h"
27 #include "ui/base/window_open_disposition.h" 28 #include "ui/base/window_open_disposition.h"
28 #include "webkit/common/resource_type.h" 29 #include "webkit/common/resource_type.h"
29 30
30 #if defined(OS_POSIX) && !defined(OS_MACOSX) 31 #if defined(OS_POSIX) && !defined(OS_MACOSX)
31 #include "base/posix/global_descriptors.h" 32 #include "base/posix/global_descriptors.h"
32 #endif 33 #endif
33 34
34 class CommandLine; 35 class CommandLine;
(...skipping 11 matching lines...) Expand all
46 namespace crypto { 47 namespace crypto {
47 class CryptoModuleBlockingPasswordDelegate; 48 class CryptoModuleBlockingPasswordDelegate;
48 } 49 }
49 50
50 namespace gfx { 51 namespace gfx {
51 class ImageSkia; 52 class ImageSkia;
52 } 53 }
53 54
54 namespace net { 55 namespace net {
55 class CookieOptions; 56 class CookieOptions;
57 class CookieStore;
56 class HttpNetworkSession; 58 class HttpNetworkSession;
57 class NetLog; 59 class NetLog;
58 class SSLCertRequestInfo; 60 class SSLCertRequestInfo;
59 class SSLInfo; 61 class SSLInfo;
60 class URLRequest; 62 class URLRequest;
61 class URLRequestContext;
62 class URLRequestContextGetter; 63 class URLRequestContextGetter;
63 class X509Certificate; 64 class X509Certificate;
64 } 65 }
65 66
66 namespace sandbox { 67 namespace sandbox {
67 class TargetPolicy; 68 class TargetPolicy;
68 } 69 }
69 70
70 namespace ui { 71 namespace ui {
71 class SelectFilePolicy; 72 class SelectFilePolicy;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 322
322 // Allow the embedder to control if access to IndexedDB by a shared worker 323 // Allow the embedder to control if access to IndexedDB by a shared worker
323 // is allowed. 324 // is allowed.
324 // This is called on the IO thread. 325 // This is called on the IO thread.
325 virtual bool AllowWorkerIndexedDB( 326 virtual bool AllowWorkerIndexedDB(
326 const GURL& url, 327 const GURL& url,
327 const string16& name, 328 const string16& name,
328 ResourceContext* context, 329 ResourceContext* context,
329 const std::vector<std::pair<int, int> >& render_views); 330 const std::vector<std::pair<int, int> >& render_views);
330 331
331 // Allow the embedder to override the request context based on the URL for
332 // certain operations, like cookie access. Returns NULL to indicate the
333 // regular request context should be used.
334 // This is called on the IO thread.
335 virtual net::URLRequestContext* OverrideRequestContextForURL(
336 const GURL& url, ResourceContext* context);
337
338 // Allow the embedder to specify a string version of the storage partition 332 // Allow the embedder to specify a string version of the storage partition
339 // config with a site. 333 // config with a site.
340 virtual std::string GetStoragePartitionIdForSite( 334 virtual std::string GetStoragePartitionIdForSite(
341 content::BrowserContext* browser_context, 335 content::BrowserContext* browser_context,
342 const GURL& site); 336 const GURL& site);
343 337
344 // Allows the embedder to provide a validation check for |partition_id|s. 338 // Allows the embedder to provide a validation check for |partition_id|s.
345 // This domain of valid entries should match the range of outputs for 339 // This domain of valid entries should match the range of outputs for
346 // GetStoragePartitionIdForChildProcess(). 340 // GetStoragePartitionIdForChildProcess().
347 virtual bool IsValidStoragePartitionId(BrowserContext* browser_context, 341 virtual bool IsValidStoragePartitionId(BrowserContext* browser_context,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 // This is called on a worker thread. 582 // This is called on a worker thread.
589 virtual 583 virtual
590 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 584 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
591 const GURL& url); 585 const GURL& url);
592 #endif 586 #endif
593 }; 587 };
594 588
595 } // namespace content 589 } // namespace content
596 590
597 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 591 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698