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

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

Issue 1272113002: Allow url::SchemeHostPort to hold non-file scheme without port (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « content/common/url_schemes.cc ('k') | extensions/shell/common/shell_content_client.h » ('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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "ui/base/layout.h" 17 #include "ui/base/layout.h"
18 #include "url/url_util.h"
18 19
19 class GURL; 20 class GURL;
20 21
21 namespace base { 22 namespace base {
22 class RefCountedStaticMemory; 23 class RefCountedStaticMemory;
23 } 24 }
24 25
25 namespace IPC { 26 namespace IPC {
26 class Message; 27 class Message;
27 } 28 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Sets the data on the current gpu. 83 // Sets the data on the current gpu.
83 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} 84 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {}
84 85
85 // Gives the embedder a chance to register its own pepper plugins. 86 // Gives the embedder a chance to register its own pepper plugins.
86 virtual void AddPepperPlugins( 87 virtual void AddPepperPlugins(
87 std::vector<content::PepperPluginInfo>* plugins) {} 88 std::vector<content::PepperPluginInfo>* plugins) {}
88 89
89 // Gives the embedder a chance to register its own standard and saveable 90 // Gives the embedder a chance to register its own standard and saveable
90 // url schemes early on in the startup sequence. 91 // url schemes early on in the startup sequence.
91 virtual void AddAdditionalSchemes( 92 virtual void AddAdditionalSchemes(
92 std::vector<std::string>* standard_schemes, 93 std::vector<url::SchemeWithType>* standard_schemes,
93 std::vector<std::string>* savable_schemes) {} 94 std::vector<std::string>* savable_schemes) {}
94 95
95 // Returns whether the given message should be sent in a swapped out renderer. 96 // Returns whether the given message should be sent in a swapped out renderer.
96 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); 97 virtual bool CanSendWhileSwappedOut(const IPC::Message* message);
97 98
98 // Returns a string describing the embedder product name and version, 99 // Returns a string describing the embedder product name and version,
99 // of the form "productname/version", with no other slashes. 100 // of the form "productname/version", with no other slashes.
100 // Used as part of the user agent string. 101 // Used as part of the user agent string.
101 virtual std::string GetProduct() const; 102 virtual std::string GetProduct() const;
102 103
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ContentPluginClient* plugin_; 157 ContentPluginClient* plugin_;
157 // The embedder API for participating in renderer logic. 158 // The embedder API for participating in renderer logic.
158 ContentRendererClient* renderer_; 159 ContentRendererClient* renderer_;
159 // The embedder API for participating in utility logic. 160 // The embedder API for participating in utility logic.
160 ContentUtilityClient* utility_; 161 ContentUtilityClient* utility_;
161 }; 162 };
162 163
163 } // namespace content 164 } // namespace content
164 165
165 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/url_schemes.cc ('k') | extensions/shell/common/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698