OLD | NEW |
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 EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ | 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ |
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ | 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ |
7 | 7 |
8 #include "extensions/renderer/guest_view/guest_view_container.h" | 8 #include "extensions/renderer/guest_view/guest_view_container.h" |
9 #include "third_party/WebKit/public/platform/WebURLLoader.h" | 9 #include "third_party/WebKit/public/platform/WebURLLoader.h" |
10 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 10 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 public blink::WebURLLoaderClient { | 32 public blink::WebURLLoaderClient { |
33 public: | 33 public: |
34 MimeHandlerViewContainer(content::RenderFrame* render_frame, | 34 MimeHandlerViewContainer(content::RenderFrame* render_frame, |
35 const std::string& mime_type, | 35 const std::string& mime_type, |
36 const GURL& original_url); | 36 const GURL& original_url); |
37 ~MimeHandlerViewContainer() override; | 37 ~MimeHandlerViewContainer() override; |
38 | 38 |
39 // BrowserPluginDelegate implementation. | 39 // BrowserPluginDelegate implementation. |
40 void DidFinishLoading() override; | 40 void DidFinishLoading() override; |
41 void DidReceiveData(const char* data, int data_length) override; | 41 void DidReceiveData(const char* data, int data_length) override; |
| 42 bool OnMessageReceived(const IPC::Message& message) override; |
42 void Ready() override; | 43 void Ready() override; |
43 | 44 |
44 // GuestViewContainer overrides. | |
45 bool HandlesMessage(const IPC::Message& message) override; | |
46 bool OnMessage(const IPC::Message& message) override; | |
47 | |
48 // WebURLLoaderClient overrides. | 45 // WebURLLoaderClient overrides. |
49 void didReceiveData(blink::WebURLLoader* loader, | 46 void didReceiveData(blink::WebURLLoader* loader, |
50 const char* data, | 47 const char* data, |
51 int data_length, | 48 int data_length, |
52 int encoded_data_length) override; | 49 int encoded_data_length) override; |
53 void didFinishLoading(blink::WebURLLoader* loader, | 50 void didFinishLoading(blink::WebURLLoader* loader, |
54 double finish_time, | 51 double finish_time, |
55 int64_t total_encoded_data_length) override; | 52 int64_t total_encoded_data_length) override; |
56 | 53 |
57 private: | 54 private: |
(...skipping 17 matching lines...) Expand all Loading... |
75 // A URL loader to load the |original_url_| when the plugin is embedded. In | 72 // A URL loader to load the |original_url_| when the plugin is embedded. In |
76 // the embedded case, no URL request is made automatically. | 73 // the embedded case, no URL request is made automatically. |
77 scoped_ptr<blink::WebURLLoader> loader_; | 74 scoped_ptr<blink::WebURLLoader> loader_; |
78 | 75 |
79 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewContainer); | 76 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewContainer); |
80 }; | 77 }; |
81 | 78 |
82 } // namespace extensions | 79 } // namespace extensions |
83 | 80 |
84 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ | 81 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ |
OLD | NEW |