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

Side by Side Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_
7 7
8 #include "extensions/browser/extension_function_dispatcher.h" 8 #include "extensions/browser/extension_function_dispatcher.h"
9 #include "extensions/browser/guest_view/guest_view.h" 9 #include "extensions/browser/guest_view/guest_view.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class MimeHandlerViewGuestDelegate; 13 class MimeHandlerViewGuestDelegate;
14 14
15 class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest>, 15 class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest>,
16 public ExtensionFunctionDispatcher::Delegate { 16 public ExtensionFunctionDispatcher::Delegate {
17 public: 17 public:
18 static GuestViewBase* Create(content::BrowserContext* browser_context, 18 static GuestViewBase* Create(content::BrowserContext* browser_context,
19 int guest_instance_id); 19 int guest_instance_id);
20 20
21 static const char Type[]; 21 static const char Type[];
22 22
23 // ExtensionFunctionDispatcher::Delegate implementation. 23 // ExtensionFunctionDispatcher::Delegate implementation.
24 virtual WindowController* GetExtensionWindowController() const OVERRIDE; 24 virtual WindowController* GetExtensionWindowController() const override;
25 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 25 virtual content::WebContents* GetAssociatedWebContents() const override;
26 26
27 // GuestViewBase implementation. 27 // GuestViewBase implementation.
28 virtual const char* GetAPINamespace() const OVERRIDE; 28 virtual const char* GetAPINamespace() const override;
29 virtual int GetTaskPrefix() const OVERRIDE; 29 virtual int GetTaskPrefix() const override;
30 virtual void CreateWebContents( 30 virtual void CreateWebContents(
31 const std::string& embedder_extension_id, 31 const std::string& embedder_extension_id,
32 int embedder_render_process_id, 32 int embedder_render_process_id,
33 const GURL& embedder_site_url, 33 const GURL& embedder_site_url,
34 const base::DictionaryValue& create_params, 34 const base::DictionaryValue& create_params,
35 const WebContentsCreatedCallback& callback) OVERRIDE; 35 const WebContentsCreatedCallback& callback) override;
36 virtual void DidAttachToEmbedder() OVERRIDE; 36 virtual void DidAttachToEmbedder() override;
37 virtual void DidInitialize() OVERRIDE; 37 virtual void DidInitialize() override;
38 38
39 // WebContentsDelegate implementation. 39 // WebContentsDelegate implementation.
40 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; 40 virtual void ContentsZoomChange(bool zoom_in) override;
41 virtual void HandleKeyboardEvent( 41 virtual void HandleKeyboardEvent(
42 content::WebContents* source, 42 content::WebContents* source,
43 const content::NativeWebKeyboardEvent& event) OVERRIDE; 43 const content::NativeWebKeyboardEvent& event) override;
44 44
45 // content::WebContentsObserver implementation. 45 // content::WebContentsObserver implementation.
46 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 46 virtual bool OnMessageReceived(const IPC::Message& message) override;
47 47
48 private: 48 private:
49 MimeHandlerViewGuest(content::BrowserContext* browser_context, 49 MimeHandlerViewGuest(content::BrowserContext* browser_context,
50 int guest_instance_id); 50 int guest_instance_id);
51 virtual ~MimeHandlerViewGuest(); 51 virtual ~MimeHandlerViewGuest();
52 52
53 void OnRequest(const ExtensionHostMsg_Request_Params& params); 53 void OnRequest(const ExtensionHostMsg_Request_Params& params);
54 54
55 scoped_ptr<MimeHandlerViewGuestDelegate> delegate_; 55 scoped_ptr<MimeHandlerViewGuestDelegate> delegate_;
56 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 56 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); 58 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest);
59 }; 59 };
60 60
61 } // namespace extensions 61 } // namespace extensions
62 62
63 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE ST_H_ 63 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE ST_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/guest_view_manager.h ('k') | extensions/browser/guest_view/web_view/javascript_dialog_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698