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

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

Issue 8475024: Changed argument to GetAcceptLangs() to a BrowserContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR. 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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Allows the embedder to pass extra command line flags. 160 // Allows the embedder to pass extra command line flags.
161 // switches::kProcessType will already be set at this point. 161 // switches::kProcessType will already be set at this point.
162 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 162 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
163 int child_process_id) = 0; 163 int child_process_id) = 0;
164 164
165 // Returns the locale used by the application. 165 // Returns the locale used by the application.
166 virtual std::string GetApplicationLocale() = 0; 166 virtual std::string GetApplicationLocale() = 0;
167 167
168 // Returns the languages used in the Accept-Languages HTTP header. 168 // Returns the languages used in the Accept-Languages HTTP header.
169 // (Not called GetAcceptLanguages so it doesn't clash with win32). 169 // (Not called GetAcceptLanguages so it doesn't clash with win32).
170 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; 170 virtual std::string GetAcceptLangs(
171 content::BrowserContext* context) = 0;
171 172
172 // Returns the default favicon. The callee doesn't own the given bitmap. 173 // Returns the default favicon. The callee doesn't own the given bitmap.
173 virtual SkBitmap* GetDefaultFavicon() = 0; 174 virtual SkBitmap* GetDefaultFavicon() = 0;
174 175
175 // Allow the embedder to control if an AppCache can be used for the given url. 176 // Allow the embedder to control if an AppCache can be used for the given url.
176 // This is called on the IO thread. 177 // This is called on the IO thread.
177 virtual bool AllowAppCache(const GURL& manifest_url, 178 virtual bool AllowAppCache(const GURL& manifest_url,
178 const GURL& first_party, 179 const GURL& first_party,
179 const content::ResourceContext& context) = 0; 180 const content::ResourceContext& context) = 0;
180 181
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // This is called on a worker thread. 364 // This is called on a worker thread.
364 virtual 365 virtual
365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 366 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
366 const GURL& url) = 0; 367 const GURL& url) = 0;
367 #endif 368 #endif
368 }; 369 };
369 370
370 } // namespace content 371 } // namespace content
371 372
372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 373 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698