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

Side by Side Diff: webkit/glue/plugins/pepper_url_loader.h

Issue 4747001: Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directory... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_module.cc ('k') | webkit/glue/plugins/pepper_url_loader.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "ppapi/c/pp_completion_callback.h" 11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/dev/ppb_url_loader_trusted_dev.h" 12 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h"
14 #include "webkit/glue/plugins/pepper_plugin_instance.h" 14 #include "webkit/glue/plugins/pepper_plugin_instance.h"
15 #include "webkit/glue/plugins/pepper_resource.h" 15 #include "webkit/glue/plugins/pepper_resource.h"
16 16
17 struct PPB_URLLoader_Dev; 17 struct PPB_URLLoader;
18 struct PPB_URLLoaderTrusted_Dev; 18 struct PPB_URLLoaderTrusted;
19 19
20 namespace WebKit { 20 namespace WebKit {
21 class WebFrame; 21 class WebFrame;
22 class WebURL; 22 class WebURL;
23 } 23 }
24 24
25 namespace pepper { 25 namespace pepper {
26 26
27 class PluginInstance; 27 class PluginInstance;
28 class URLRequestInfo; 28 class URLRequestInfo;
29 class URLResponseInfo; 29 class URLResponseInfo;
30 30
31 class URLLoader : public Resource, 31 class URLLoader : public Resource,
32 public WebKit::WebURLLoaderClient, 32 public WebKit::WebURLLoaderClient,
33 public PluginInstance::Observer { 33 public PluginInstance::Observer {
34 public: 34 public:
35 URLLoader(PluginInstance* instance, bool main_document_loader); 35 URLLoader(PluginInstance* instance, bool main_document_loader);
36 virtual ~URLLoader(); 36 virtual ~URLLoader();
37 37
38 // Returns a pointer to the interface implementing PPB_URLLoader that is 38 // Returns a pointer to the interface implementing PPB_URLLoader that is
39 // exposed to the plugin. 39 // exposed to the plugin.
40 static const PPB_URLLoader_Dev* GetInterface(); 40 static const PPB_URLLoader* GetInterface();
41 41
42 // Returns a pointer to the interface implementing PPB_URLLoaderTrusted that 42 // Returns a pointer to the interface implementing PPB_URLLoaderTrusted that
43 // is exposed to the plugin. 43 // is exposed to the plugin.
44 static const PPB_URLLoaderTrusted_Dev* GetTrustedInterface(); 44 static const PPB_URLLoaderTrusted* GetTrustedInterface();
45 45
46 // Resource overrides. 46 // Resource overrides.
47 URLLoader* AsURLLoader() { return this; } 47 URLLoader* AsURLLoader() { return this; }
48 48
49 // PPB_URLLoader implementation. 49 // PPB_URLLoader implementation.
50 int32_t Open(URLRequestInfo* request, PP_CompletionCallback callback); 50 int32_t Open(URLRequestInfo* request, PP_CompletionCallback callback);
51 int32_t FollowRedirect(PP_CompletionCallback callback); 51 int32_t FollowRedirect(PP_CompletionCallback callback);
52 bool GetUploadProgress(int64_t* bytes_sent, 52 bool GetUploadProgress(int64_t* bytes_sent,
53 int64_t* total_bytes_to_be_sent); 53 int64_t* total_bytes_to_be_sent);
54 bool GetDownloadProgress(int64_t* bytes_received, 54 bool GetDownloadProgress(int64_t* bytes_received,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool record_upload_progress_; 126 bool record_upload_progress_;
127 127
128 bool has_universal_access_; 128 bool has_universal_access_;
129 129
130 PP_URLLoaderTrusted_StatusCallback status_callback_; 130 PP_URLLoaderTrusted_StatusCallback status_callback_;
131 }; 131 };
132 132
133 } // namespace pepper 133 } // namespace pepper
134 134
135 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ 135 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_module.cc ('k') | webkit/glue/plugins/pepper_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698