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

Side by Side Diff: content/browser/mock_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_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const GURL& site_url) OVERRIDE; 43 const GURL& site_url) OVERRIDE;
44 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; 44 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE;
45 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; 45 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE;
46 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, 46 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url,
47 const GURL& new_url) OVERRIDE; 47 const GURL& new_url) OVERRIDE;
48 virtual std::string GetCanonicalEncodingNameByAliasName( 48 virtual std::string GetCanonicalEncodingNameByAliasName(
49 const std::string& alias_name) OVERRIDE; 49 const std::string& alias_name) OVERRIDE;
50 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 50 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
51 int child_process_id) OVERRIDE; 51 int child_process_id) OVERRIDE;
52 virtual std::string GetApplicationLocale() OVERRIDE; 52 virtual std::string GetApplicationLocale() OVERRIDE;
53 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; 53 virtual std::string GetAcceptLangs(
54 content::BrowserContext* context) OVERRIDE;
54 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; 55 virtual SkBitmap* GetDefaultFavicon() OVERRIDE;
55 virtual bool AllowAppCache(const GURL& manifest_url, 56 virtual bool AllowAppCache(const GURL& manifest_url,
56 const GURL& first_party, 57 const GURL& first_party,
57 const content::ResourceContext& context) OVERRIDE; 58 const content::ResourceContext& context) OVERRIDE;
58 virtual bool AllowGetCookie(const GURL& url, 59 virtual bool AllowGetCookie(const GURL& url,
59 const GURL& first_party, 60 const GURL& first_party,
60 const net::CookieList& cookie_list, 61 const net::CookieList& cookie_list,
61 const content::ResourceContext& context, 62 const content::ResourceContext& context,
62 int render_process_id, 63 int render_process_id,
63 int render_view_id) OVERRIDE; 64 int render_view_id) OVERRIDE;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 private: 163 private:
163 // Temporary directory for GetDefaultDownloadDirectory. 164 // Temporary directory for GetDefaultDownloadDirectory.
164 ScopedTempDir download_dir_; 165 ScopedTempDir download_dir_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); 167 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient);
167 }; 168 };
168 169
169 } // namespace content 170 } // namespace content
170 171
171 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 172 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/mock_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698