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

Side by Side Diff: components/nacl/renderer/nexe_load_manager.h

Issue 288773002: Pepper: Simplify manifest download logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ 5 #ifndef COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_
6 #define COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ 6 #define COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 int32_t exit_status() const { return exit_status_; } 74 int32_t exit_status() const { return exit_status_; }
75 void set_exit_status(int32_t exit_status); 75 void set_exit_status(int32_t exit_status);
76 76
77 void InitializePlugin(uint32_t argc, const char* argn[], const char* argv[]); 77 void InitializePlugin(uint32_t argc, const char* argn[], const char* argv[]);
78 78
79 void ReportStartupOverhead() const; 79 void ReportStartupOverhead() const;
80 80
81 int64_t nexe_size() const { return nexe_size_; } 81 int64_t nexe_size() const { return nexe_size_; }
82 82
83 bool RequestNaClManifest(const std::string& url, bool* is_data_uri); 83 bool RequestNaClManifest(const std::string& url);
84 void ProcessNaClManifest(const std::string& program_url); 84 void ProcessNaClManifest(const std::string& program_url);
85 85
86 // URL resolution support. 86 // URL resolution support.
87 // plugin_base_url is the URL used for resolving relative URLs used in 87 // plugin_base_url is the URL used for resolving relative URLs used in
88 // src="...". 88 // src="...".
89 const GURL& plugin_base_url() const { return plugin_base_url_; } 89 const GURL& plugin_base_url() const { return plugin_base_url_; }
90 90
91 // manifest_base_url is the URL used for resolving relative URLs mentioned 91 // manifest_base_url is the URL used for resolving relative URLs mentioned
92 // in manifest files. If the manifest is a data URI, this is an empty string 92 // in manifest files. If the manifest is a data URI, this is an empty string
93 const GURL& manifest_base_url() const { return manifest_base_url_; } 93 const GURL& manifest_base_url() const { return manifest_base_url_; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 std::string mime_type_; 158 std::string mime_type_;
159 159
160 scoped_ptr<TrustedPluginChannel> trusted_plugin_channel_; 160 scoped_ptr<TrustedPluginChannel> trusted_plugin_channel_;
161 scoped_ptr<ManifestServiceChannel> manifest_service_channel_; 161 scoped_ptr<ManifestServiceChannel> manifest_service_channel_;
162 base::WeakPtrFactory<NexeLoadManager> weak_factory_; 162 base::WeakPtrFactory<NexeLoadManager> weak_factory_;
163 }; 163 };
164 164
165 } // namespace nacl 165 } // namespace nacl
166 166
167 #endif // COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ 167 #endif // COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « components/nacl/renderer/manifest_downloader.cc ('k') | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698