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

Side by Side Diff: content/renderer/pepper/pepper_url_loader_host.h

Issue 231793004: Update a few more references to WebFrame to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ppapi/host/resource_host.h" 13 #include "ppapi/host/resource_host.h"
14 #include "ppapi/proxy/resource_message_params.h" 14 #include "ppapi/proxy/resource_message_params.h"
15 #include "ppapi/shared_impl/url_request_info_data.h" 15 #include "ppapi/shared_impl/url_request_info_data.h"
16 #include "ppapi/shared_impl/url_response_info_data.h" 16 #include "ppapi/shared_impl/url_response_info_data.h"
17 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 17 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
18 #include "third_party/WebKit/public/web/WebLocalFrame.h"
18 19
19 namespace blink { 20 namespace blink {
20 class WebFrame;
21 class WebURLLoader; 21 class WebURLLoader;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 class RendererPpapiHostImpl; 26 class RendererPpapiHostImpl;
27 27
28 class PepperURLLoaderHost 28 class PepperURLLoaderHost
29 : public ppapi::host::ResourceHost, 29 : public ppapi::host::ResourceHost,
30 public blink::WebURLLoaderClient { 30 public blink::WebURLLoaderClient {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Sends or queues an unsolicited message to the plugin resource. This is 90 // Sends or queues an unsolicited message to the plugin resource. This is
91 // used inside SendUpdateToPlugin for messages that are already ordered 91 // used inside SendUpdateToPlugin for messages that are already ordered
92 // properly. 92 // properly.
93 // 93 //
94 // Takes ownership of the given pointer. 94 // Takes ownership of the given pointer.
95 void SendOrderedUpdateToPlugin(IPC::Message* msg); 95 void SendOrderedUpdateToPlugin(IPC::Message* msg);
96 96
97 void Close(); 97 void Close();
98 98
99 // Returns the frame for the current request. 99 // Returns the frame for the current request.
100 blink::WebFrame* GetFrame(); 100 blink::WebLocalFrame* GetFrame();
101 101
102 // Calls SetDefersLoading on the current load. This encapsulates the logic 102 // Calls SetDefersLoading on the current load. This encapsulates the logic
103 // differences between document loads and regular ones. 103 // differences between document loads and regular ones.
104 void SetDefersLoading(bool defers_loading); 104 void SetDefersLoading(bool defers_loading);
105 105
106 // Converts a WebURLResponse to a URLResponseInfo and saves it. 106 // Converts a WebURLResponse to a URLResponseInfo and saves it.
107 void SaveResponse(const blink::WebURLResponse& response); 107 void SaveResponse(const blink::WebURLResponse& response);
108 void DidDataFromWebURLResponse(const ppapi::URLResponseInfoData& data); 108 void DidDataFromWebURLResponse(const ppapi::URLResponseInfoData& data);
109 109
110 // Sends the UpdateProgress message (if necessary) to the plugin. 110 // Sends the UpdateProgress message (if necessary) to the plugin.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 bool pending_response_; 149 bool pending_response_;
150 150
151 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; 151 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); 153 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost);
154 }; 154 };
155 155
156 } // namespace content 156 } // namespace content
157 157
158 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ 158 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/npapi_glue.cc ('k') | content/renderer/pepper/pepper_url_loader_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698