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

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: Removed flag Created 8 years, 4 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 product.
Charlie Reis 2012/08/24 21:38:43 Can you elaborate on what you mean by "product?"
gone 2012/08/24 23:50:35 I pulled the name from the existing GetUserAgent()
Charlie Reis 2012/08/25 00:11:10 Yes, that would help a lot.
gone 2012/08/25 00:23:49 Will set it for the next patch.
112 virtual std::string GetProduct() const;
113
111 // Returns the user agent. 114 // Returns the user agent.
112 virtual std::string GetUserAgent() const; 115 virtual std::string GetUserAgent() const;
113 116
114 // Returns a string resource given its id. 117 // Returns a string resource given its id.
115 virtual string16 GetLocalizedString(int message_id) const; 118 virtual string16 GetLocalizedString(int message_id) const;
116 119
117 // Return the contents of a resource in a StringPiece given the resource id. 120 // Return the contents of a resource in a StringPiece given the resource id.
118 virtual base::StringPiece GetDataResource( 121 virtual base::StringPiece GetDataResource(
119 int resource_id, 122 int resource_id,
120 ui::ScaleFactor scale_factor) const; 123 ui::ScaleFactor scale_factor) const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ContentPluginClient* plugin_; 160 ContentPluginClient* plugin_;
158 // The embedder API for participating in renderer logic. 161 // The embedder API for participating in renderer logic.
159 ContentRendererClient* renderer_; 162 ContentRendererClient* renderer_;
160 // The embedder API for participating in utility logic. 163 // The embedder API for participating in utility logic.
161 ContentUtilityClient* utility_; 164 ContentUtilityClient* utility_;
162 }; 165 };
163 166
164 } // namespace content 167 } // namespace content
165 168
166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 169 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698