OLD | NEW |
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 #include "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 #include "ui/gfx/image/image_skia.h" | 9 #include "ui/gfx/image/image_skia.h" |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool ContentBrowserClient::AllowSetCookie(const GURL& url, | 102 bool ContentBrowserClient::AllowSetCookie(const GURL& url, |
103 const GURL& first_party, | 103 const GURL& first_party, |
104 const std::string& cookie_line, | 104 const std::string& cookie_line, |
105 ResourceContext* context, | 105 ResourceContext* context, |
106 int render_process_id, | 106 int render_process_id, |
107 int render_view_id, | 107 int render_view_id, |
108 net::CookieOptions* options) { | 108 net::CookieOptions* options) { |
109 return true; | 109 return true; |
110 } | 110 } |
111 | 111 |
| 112 bool ContentBrowserClient::AllowPluginLocalDataAccess( |
| 113 const GURL& document_url, |
| 114 const GURL& plugin_url, |
| 115 content::ResourceContext* context) { |
| 116 return true; |
| 117 } |
| 118 |
| 119 bool ContentBrowserClient::AllowPluginLocalDataSessionOnly( |
| 120 const GURL& url, |
| 121 content::ResourceContext* context) { |
| 122 return false; |
| 123 } |
| 124 |
112 bool ContentBrowserClient::AllowSaveLocalState(ResourceContext* context) { | 125 bool ContentBrowserClient::AllowSaveLocalState(ResourceContext* context) { |
113 return true; | 126 return true; |
114 } | 127 } |
115 | 128 |
116 bool ContentBrowserClient::AllowWorkerDatabase( | 129 bool ContentBrowserClient::AllowWorkerDatabase( |
117 const GURL& url, | 130 const GURL& url, |
118 const string16& name, | 131 const string16& name, |
119 const string16& display_name, | 132 const string16& display_name, |
120 unsigned long estimated_size, | 133 unsigned long estimated_size, |
121 ResourceContext* context, | 134 ResourceContext* context, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #endif | 234 #endif |
222 | 235 |
223 #if defined(USE_NSS) | 236 #if defined(USE_NSS) |
224 crypto::CryptoModuleBlockingPasswordDelegate* | 237 crypto::CryptoModuleBlockingPasswordDelegate* |
225 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 238 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
226 return NULL; | 239 return NULL; |
227 } | 240 } |
228 #endif | 241 #endif |
229 | 242 |
230 } // namespace content | 243 } // namespace content |
OLD | NEW |