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

Side by Side Diff: content/public/common/content_client.h

Issue 18055008: Expose "Chrome" as accessible product name. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Parse product name in b_a_win.cc instead Created 7 years, 5 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 std::vector<std::string>* standard_schemes, 118 std::vector<std::string>* standard_schemes,
119 std::vector<std::string>* savable_schemes) {} 119 std::vector<std::string>* savable_schemes) {}
120 120
121 // Returns whether the given message should be sent in a swapped out renderer. 121 // Returns whether the given message should be sent in a swapped out renderer.
122 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); 122 virtual bool CanSendWhileSwappedOut(const IPC::Message* message);
123 123
124 // Returns whether the given message should be processed in the browser on 124 // Returns whether the given message should be processed in the browser on
125 // behalf of a swapped out renderer. 125 // behalf of a swapped out renderer.
126 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); 126 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message);
127 127
128 // Returns a string describing the embedder version. Used as part of the 128 // Returns a string describing the embedder product name and version,
129 // user agent string. 129 // of the form "productname/version", with no other slashes.
130 // Used as part of the user agent string.
130 virtual std::string GetProduct() const; 131 virtual std::string GetProduct() const;
131 132
132 // Returns the user agent. 133 // Returns the user agent.
133 virtual std::string GetUserAgent() const; 134 virtual std::string GetUserAgent() const;
134 135
135 // Returns a string resource given its id. 136 // Returns a string resource given its id.
136 virtual string16 GetLocalizedString(int message_id) const; 137 virtual string16 GetLocalizedString(int message_id) const;
137 138
138 // Return the contents of a resource in a StringPiece given the resource id. 139 // Return the contents of a resource in a StringPiece given the resource id.
139 virtual base::StringPiece GetDataResource( 140 virtual base::StringPiece GetDataResource(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 ContentPluginClient* plugin_; 179 ContentPluginClient* plugin_;
179 // The embedder API for participating in renderer logic. 180 // The embedder API for participating in renderer logic.
180 ContentRendererClient* renderer_; 181 ContentRendererClient* renderer_;
181 // The embedder API for participating in utility logic. 182 // The embedder API for participating in utility logic.
182 ContentUtilityClient* utility_; 183 ContentUtilityClient* utility_;
183 }; 184 };
184 185
185 } // namespace content 186 } // namespace content
186 187
187 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 188 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698