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

Side by Side Diff: content/browser/mock_content_browser_client.cc

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 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
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | webkit/appcache/appcache_group.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/mock_content_browser_client.h" 5 #include "content/browser/mock_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "content/browser/webui/empty_web_ui_factory.h" 10 #include "content/browser/webui/empty_web_ui_factory.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { 80 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) {
81 return std::string(); 81 return std::string();
82 } 82 }
83 83
84 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { 84 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() {
85 static SkBitmap empty; 85 static SkBitmap empty;
86 return &empty; 86 return &empty;
87 } 87 }
88 88
89 bool MockContentBrowserClient::AllowAppCache( 89 bool MockContentBrowserClient::AllowAppCache(
90 const GURL& manifest_url, const content::ResourceContext& context) { 90 const GURL& manifest_url, const GURL& first_party,
91 const content::ResourceContext& context) {
91 return true; 92 return true;
92 } 93 }
93 94
94 bool MockContentBrowserClient::AllowGetCookie( 95 bool MockContentBrowserClient::AllowGetCookie(
95 const GURL& url, 96 const GURL& url,
96 const GURL& first_party, 97 const GURL& first_party,
97 const net::CookieList& cookie_list, 98 const net::CookieList& cookie_list,
98 const content::ResourceContext& context, 99 const content::ResourceContext& context,
99 int render_process_id, 100 int render_process_id,
100 int render_view_id) { 101 int render_view_id) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 #endif 277 #endif
277 278
278 #if defined(USE_NSS) 279 #if defined(USE_NSS)
279 crypto::CryptoModuleBlockingPasswordDelegate* 280 crypto::CryptoModuleBlockingPasswordDelegate*
280 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 281 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
281 return NULL; 282 return NULL;
282 } 283 }
283 #endif 284 #endif
284 285
285 } // namespace content 286 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | webkit/appcache/appcache_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698