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_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ | |
6 #define CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_ | |
7 | |
8 #include "chrome/browser/guest_view/guest_view.h" | |
9 | |
10 class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest> { | |
11 public: | |
12 static const char Type[]; | |
13 | |
14 MimeHandlerViewGuest(content::BrowserContext* browser_context, | |
15 int guest_instance_id); | |
16 | |
17 // GuestViewBase implementation. | |
18 virtual bool CanEmbedderUseGuestView( | |
19 const std::string& embedder_extension_id) OVERRIDE; | |
20 virtual void CreateWebContents( | |
21 const std::string& embedder_extension_id, | |
22 int embedder_render_process_id, | |
23 const base::DictionaryValue& create_params, | |
24 const WebContentsCreatedCallback& callback) OVERRIDE; | |
25 virtual void DidAttachToEmbedder() OVERRIDE; | |
26 virtual void DidInitialize() OVERRIDE; | |
27 | |
28 private: | |
29 virtual ~MimeHandlerViewGuest(); | |
30 | |
31 void AttachWebContentsHelpers(content::WebContents* contents); | |
32 void NavigateGuest(const std::string& src); | |
Fady Samuel
2014/07/21 14:47:35
Get rid of this?
lazyboy
2014/07/21 17:28:21
Done.
| |
33 | |
34 bool has_navigated_; | |
Fady Samuel
2014/07/21 14:47:35
Get rid of this?
lazyboy
2014/07/21 17:28:21
Done.
| |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H _ | |
OLD | NEW |