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

Side by Side Diff: content/public/common/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: Moving namespaces 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 CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 std::vector<std::string>* savable_schemes) {} 101 std::vector<std::string>* savable_schemes) {}
102 102
103 // Returns true if the url has a scheme for WebUI. See also 103 // Returns true if the url has a scheme for WebUI. See also
104 // WebUIControllerFactory::UseWebUIForURL in the browser process. 104 // WebUIControllerFactory::UseWebUIForURL in the browser process.
105 virtual bool HasWebUIScheme(const GURL& url) const; 105 virtual bool HasWebUIScheme(const GURL& url) const;
106 106
107 // Returns whether the given message should be processed in the browser on 107 // Returns whether the given message should be processed in the browser on
108 // behalf of a swapped out renderer. 108 // behalf of a swapped out renderer.
109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); 109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message);
110 110
111 // Returns a string describing the embedder version. Used as part of the
112 // user agent string.
113 virtual std::string GetProduct() const;
114
111 // Returns the user agent. 115 // Returns the user agent.
112 virtual std::string GetUserAgent() const; 116 virtual std::string GetUserAgent() const;
113 117
114 // Returns a string resource given its id. 118 // Returns a string resource given its id.
115 virtual string16 GetLocalizedString(int message_id) const; 119 virtual string16 GetLocalizedString(int message_id) const;
116 120
117 // Return the contents of a resource in a StringPiece given the resource id. 121 // Return the contents of a resource in a StringPiece given the resource id.
118 virtual base::StringPiece GetDataResource( 122 virtual base::StringPiece GetDataResource(
119 int resource_id, 123 int resource_id,
120 ui::ScaleFactor scale_factor) const; 124 ui::ScaleFactor scale_factor) const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ContentPluginClient* plugin_; 161 ContentPluginClient* plugin_;
158 // The embedder API for participating in renderer logic. 162 // The embedder API for participating in renderer logic.
159 ContentRendererClient* renderer_; 163 ContentRendererClient* renderer_;
160 // The embedder API for participating in utility logic. 164 // The embedder API for participating in utility logic.
161 ContentUtilityClient* utility_; 165 ContentUtilityClient* utility_;
162 }; 166 };
163 167
164 } // namespace content 168 } // namespace content
165 169
166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 170 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698