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

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

Issue 248703002: Remove ContentClient::CanHandleWhileSwappedOut(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Gives the embedder a chance to register its own standard and saveable 88 // Gives the embedder a chance to register its own standard and saveable
89 // url schemes early on in the startup sequence. 89 // url schemes early on in the startup sequence.
90 virtual void AddAdditionalSchemes( 90 virtual void AddAdditionalSchemes(
91 std::vector<std::string>* standard_schemes, 91 std::vector<std::string>* standard_schemes,
92 std::vector<std::string>* savable_schemes) {} 92 std::vector<std::string>* savable_schemes) {}
93 93
94 // Returns whether the given message should be sent in a swapped out renderer. 94 // Returns whether the given message should be sent in a swapped out renderer.
95 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); 95 virtual bool CanSendWhileSwappedOut(const IPC::Message* message);
96 96
97 // Returns whether the given message should be processed in the browser on
98 // behalf of a swapped out renderer.
99 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message);
100
101 // Returns a string describing the embedder product name and version, 97 // Returns a string describing the embedder product name and version,
102 // of the form "productname/version", with no other slashes. 98 // of the form "productname/version", with no other slashes.
103 // Used as part of the user agent string. 99 // Used as part of the user agent string.
104 virtual std::string GetProduct() const; 100 virtual std::string GetProduct() const;
105 101
106 // Returns the user agent. 102 // Returns the user agent.
107 virtual std::string GetUserAgent() const; 103 virtual std::string GetUserAgent() const;
108 104
109 // Returns a string resource given its id. 105 // Returns a string resource given its id.
110 virtual base::string16 GetLocalizedString(int message_id) const; 106 virtual base::string16 GetLocalizedString(int message_id) const;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 ContentPluginClient* plugin_; 148 ContentPluginClient* plugin_;
153 // The embedder API for participating in renderer logic. 149 // The embedder API for participating in renderer logic.
154 ContentRendererClient* renderer_; 150 ContentRendererClient* renderer_;
155 // The embedder API for participating in utility logic. 151 // The embedder API for participating in utility logic.
156 ContentUtilityClient* utility_; 152 ContentUtilityClient* utility_;
157 }; 153 };
158 154
159 } // namespace content 155 } // namespace content
160 156
161 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 157 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698