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

Side by Side Diff: chrome/common/chrome_content_client.h

Issue 10854251: Allow the creation of partially spoofed user agents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reverted last patch set because of #ifdefed command line flag Created 8 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
OLDNEW
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 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; 23 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE;
24 virtual void AddPepperPlugins( 24 virtual void AddPepperPlugins(
25 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; 25 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE;
26 virtual void AddNPAPIPlugins( 26 virtual void AddNPAPIPlugins(
27 webkit::npapi::PluginList* plugin_list) OVERRIDE; 27 webkit::npapi::PluginList* plugin_list) OVERRIDE;
28 virtual void AddAdditionalSchemes( 28 virtual void AddAdditionalSchemes(
29 std::vector<std::string>* standard_schemes, 29 std::vector<std::string>* standard_schemes,
30 std::vector<std::string>* saveable_shemes) OVERRIDE; 30 std::vector<std::string>* saveable_shemes) OVERRIDE;
31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; 31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE;
32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; 32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE;
33 virtual std::string GetProduct() const OVERRIDE;
33 virtual std::string GetUserAgent() const OVERRIDE; 34 virtual std::string GetUserAgent() const OVERRIDE;
34 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; 35 virtual string16 GetLocalizedString(int message_id) const OVERRIDE;
35 virtual base::StringPiece GetDataResource( 36 virtual base::StringPiece GetDataResource(
36 int resource_id, 37 int resource_id,
37 ui::ScaleFactor scale_factor) const OVERRIDE; 38 ui::ScaleFactor scale_factor) const OVERRIDE;
38 virtual gfx::Image& GetNativeImageNamed(int resource_id) const OVERRIDE; 39 virtual gfx::Image& GetNativeImageNamed(int resource_id) const OVERRIDE;
39 40
40 #if defined(OS_WIN) 41 #if defined(OS_WIN)
41 virtual bool SandboxPlugin(CommandLine* command_line, 42 virtual bool SandboxPlugin(CommandLine* command_line,
42 sandbox::TargetPolicy* policy) OVERRIDE; 43 sandbox::TargetPolicy* policy) OVERRIDE;
(...skipping 16 matching lines...) Expand all
59 // trial with bundled Pepper Flash, and need extra information about how to 60 // trial with bundled Pepper Flash, and need extra information about how to
60 // order bundled Pepper Flash and internal NPAPI Flash. Once the field trial 61 // order bundled Pepper Flash and internal NPAPI Flash. Once the field trial
61 // is over, we should merge this into AddPepperPlugins(). 62 // is over, we should merge this into AddPepperPlugins().
62 bool GetBundledFieldTrialPepperFlash(content::PepperPluginInfo* plugin, 63 bool GetBundledFieldTrialPepperFlash(content::PepperPluginInfo* plugin,
63 bool* override_npapi_flash); 64 bool* override_npapi_flash);
64 }; 65 };
65 66
66 } // namespace chrome 67 } // namespace chrome
67 68
68 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 69 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698