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

Side by Side Diff: content/browser/media/midi_dispatcher_host.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (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
« no previous file with comments | « content/browser/media/media_internals_proxy.h ('k') | content/browser/media/midi_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class BrowserContext; 16 class BrowserContext;
17 17
18 // MidiDispatcherHost handles permissions for using system exclusive messages. 18 // MidiDispatcherHost handles permissions for using system exclusive messages.
19 class MidiDispatcherHost : public WebContentsObserver { 19 class MidiDispatcherHost : public WebContentsObserver {
20 public: 20 public:
21 explicit MidiDispatcherHost(WebContents* web_contents); 21 explicit MidiDispatcherHost(WebContents* web_contents);
22 virtual ~MidiDispatcherHost(); 22 ~MidiDispatcherHost() override;
23 23
24 // WebContentsObserver implementation. 24 // WebContentsObserver implementation.
25 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) override; 25 void RenderFrameDeleted(RenderFrameHost* render_frame_host) override;
26 virtual void DidNavigateAnyFrame(RenderFrameHost* render_frame_host, 26 void DidNavigateAnyFrame(RenderFrameHost* render_frame_host,
27 const LoadCommittedDetails& details, 27 const LoadCommittedDetails& details,
28 const FrameNavigateParams& params) override; 28 const FrameNavigateParams& params) override;
29 virtual bool OnMessageReceived(const IPC::Message& message, 29 bool OnMessageReceived(const IPC::Message& message,
30 RenderFrameHost* render_frame_host) override; 30 RenderFrameHost* render_frame_host) override;
31 31
32 private: 32 private:
33 void OnRequestSysExPermission(RenderFrameHost* render_frame_host, 33 void OnRequestSysExPermission(RenderFrameHost* render_frame_host,
34 int bridge_id, 34 int bridge_id,
35 const GURL& origin, 35 const GURL& origin,
36 bool user_gesture); 36 bool user_gesture);
37 void OnCancelSysExPermissionRequest(RenderFrameHost* render_frame_host, 37 void OnCancelSysExPermissionRequest(RenderFrameHost* render_frame_host,
38 int bridge_id, 38 int bridge_id,
39 const GURL& requesting_frame); 39 const GURL& requesting_frame);
40 void WasSysExPermissionGranted(int render_process_id, 40 void WasSysExPermissionGranted(int render_process_id,
(...skipping 15 matching lines...) Expand all
56 std::vector<PendingPermission> pending_permissions_; 56 std::vector<PendingPermission> pending_permissions_;
57 57
58 base::WeakPtrFactory<MidiDispatcherHost> weak_factory_; 58 base::WeakPtrFactory<MidiDispatcherHost> weak_factory_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost); 60 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost);
61 }; 61 };
62 62
63 } // namespace content 63 } // namespace content
64 64
65 #endif // CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ 65 #endif // CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/media/media_internals_proxy.h ('k') | content/browser/media/midi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698