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

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

Issue 8475024: Changed argument to GetAcceptLangs() to a BrowserContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 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/logging.h" 9 #include "base/logging.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 void MockContentBrowserClient::AppendExtraCommandLineSwitches( 93 void MockContentBrowserClient::AppendExtraCommandLineSwitches(
94 CommandLine* command_line, int child_process_id) { 94 CommandLine* command_line, int child_process_id) {
95 } 95 }
96 96
97 std::string MockContentBrowserClient::GetApplicationLocale() { 97 std::string MockContentBrowserClient::GetApplicationLocale() {
98 return std::string(); 98 return std::string();
99 } 99 }
100 100
101 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { 101 std::string MockContentBrowserClient::GetAcceptLangs(
102 const content::BrowserContext* context) {
102 return std::string(); 103 return std::string();
103 } 104 }
104 105
105 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { 106 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() {
106 static SkBitmap empty; 107 static SkBitmap empty;
107 return &empty; 108 return &empty;
108 } 109 }
109 110
110 bool MockContentBrowserClient::AllowAppCache( 111 bool MockContentBrowserClient::AllowAppCache(
111 const GURL& manifest_url, const GURL& first_party, 112 const GURL& manifest_url, const GURL& first_party,
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 #endif 297 #endif
297 298
298 #if defined(USE_NSS) 299 #if defined(USE_NSS)
299 crypto::CryptoModuleBlockingPasswordDelegate* 300 crypto::CryptoModuleBlockingPasswordDelegate*
300 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 301 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
301 return NULL; 302 return NULL;
302 } 303 }
303 #endif 304 #endif
304 305
305 } // namespace content 306 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698