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

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

Issue 1996723002: Switch ResourceBundle LoadDataResourceBytes to return RefCountedMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to address newly added use Created 4 years, 7 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "ui/base/layout.h" 16 #include "ui/base/layout.h"
17 #include "url/url_util.h" 17 #include "url/url_util.h"
18 18
19 class GURL; 19 class GURL;
20 20
21 namespace base { 21 namespace base {
22 class RefCountedStaticMemory; 22 class RefCountedMemory;
23 } 23 }
24 24
25 namespace IPC { 25 namespace IPC {
26 class Message; 26 class Message;
27 } 27 }
28 28
29 namespace gfx { 29 namespace gfx {
30 class Image; 30 class Image;
31 } 31 }
32 32
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // Returns a string resource given its id. 117 // Returns a string resource given its id.
118 virtual base::string16 GetLocalizedString(int message_id) const; 118 virtual base::string16 GetLocalizedString(int message_id) const;
119 119
120 // 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.
121 virtual base::StringPiece GetDataResource( 121 virtual base::StringPiece GetDataResource(
122 int resource_id, 122 int resource_id,
123 ui::ScaleFactor scale_factor) const; 123 ui::ScaleFactor scale_factor) const;
124 124
125 // Returns the raw bytes of a scale independent data resource. 125 // Returns the raw bytes of a scale independent data resource.
126 virtual base::RefCountedStaticMemory* GetDataResourceBytes( 126 virtual base::RefCountedMemory* GetDataResourceBytes(
127 int resource_id) const; 127 int resource_id) const;
128 128
129 // Returns a native image given its id. 129 // Returns a native image given its id.
130 virtual gfx::Image& GetNativeImageNamed(int resource_id) const; 130 virtual gfx::Image& GetNativeImageNamed(int resource_id) const;
131 131
132 // Called by content::GetProcessTypeNameInEnglish for process types that it 132 // Called by content::GetProcessTypeNameInEnglish for process types that it
133 // doesn't know about because they're from the embedder. 133 // doesn't know about because they're from the embedder.
134 virtual std::string GetProcessTypeNameInEnglish(int type); 134 virtual std::string GetProcessTypeNameInEnglish(int type);
135 135
136 #if defined(OS_MACOSX) 136 #if defined(OS_MACOSX)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 ContentGpuClient* gpu_; 192 ContentGpuClient* gpu_;
193 // The embedder API for participating in renderer logic. 193 // The embedder API for participating in renderer logic.
194 ContentRendererClient* renderer_; 194 ContentRendererClient* renderer_;
195 // The embedder API for participating in utility logic. 195 // The embedder API for participating in utility logic.
196 ContentUtilityClient* utility_; 196 ContentUtilityClient* utility_;
197 }; 197 };
198 198
199 } // namespace content 199 } // namespace content
200 200
201 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 201 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_data_source_unittest.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698