Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ | |
|
Fady Samuel
2014/11/03 11:03:38
This should say:
EXTESNIONS_RENDERER_GUEST_VIEW_M
raymes
2014/11/03 22:51:32
Done.
| |
| 6 #define CHROME_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ | |
| 7 | |
| 8 #include "extensions/renderer/guest_view/guest_view_container.h" | |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 class MimeHandlerViewContainer : public GuestViewContainer { | |
| 13 public: | |
| 14 MimeHandlerViewContainer(content::RenderFrame* render_frame, | |
| 15 const std::string& mime_type); | |
| 16 ~MimeHandlerViewContainer() override; | |
| 17 | |
| 18 // BrowserPluginDelegate implementation. | |
| 19 void DidFinishLoading() override; | |
| 20 void DidReceiveData(const char* data, int data_length) override; | |
| 21 void Ready() override; | |
| 22 | |
| 23 // GuestViewContainer override. | |
| 24 bool HandlesMessage(const IPC::Message& message) override; | |
| 25 bool OnMessage(const IPC::Message& message) override; | |
| 26 | |
| 27 private: | |
| 28 void OnCreateMimeHandlerViewGuestACK(int element_instance_id); | |
| 29 void OnGuestAttached(int guest_proxy_routing_id); | |
| 30 | |
| 31 const std::string mime_type_; | |
| 32 std::string html_string_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewContainer); | |
| 35 }; | |
| 36 | |
| 37 } // namespace extensions | |
| 38 | |
| 39 #endif // CHROME_RENDERER_GUEST_VIEW_MIME_HANDLER_VIEW_CONTAINER_H_ | |
| OLD | NEW |