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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/containers/scoped_ptr_hash_map.h" 9 #include "base/containers/scoped_ptr_hash_map.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 // forwards them to the corresponding managers. The managers are responsible 25 // forwards them to the corresponding managers. The managers are responsible
26 // for sending IPCs back to the RenderFrameObservers at the render side. 26 // for sending IPCs back to the RenderFrameObservers at the render side.
27 class CONTENT_EXPORT MediaWebContentsObserver : public WebContentsObserver { 27 class CONTENT_EXPORT MediaWebContentsObserver : public WebContentsObserver {
28 public: 28 public:
29 explicit MediaWebContentsObserver(WebContents* web_contents); 29 explicit MediaWebContentsObserver(WebContents* web_contents);
30 ~MediaWebContentsObserver() override; 30 ~MediaWebContentsObserver() override;
31 31
32 // WebContentsObserver implementations. 32 // WebContentsObserver implementations.
33 void RenderFrameDeleted(RenderFrameHost* render_frame_host) override; 33 void RenderFrameDeleted(RenderFrameHost* render_frame_host) override;
34 34
35 #if defined(OS_ANDROID) 35 #if defined(OS_ANDROID) && !defined(USE_AURA)
no sievers 2015/10/20 19:24:22 this we should keep
36 bool OnMessageReceived(const IPC::Message& message, 36 bool OnMessageReceived(const IPC::Message& message,
37 RenderFrameHost* render_frame_host) override; 37 RenderFrameHost* render_frame_host) override;
38 38
39 // Helper functions to handle media player IPC messages. Returns whether the 39 // Helper functions to handle media player IPC messages. Returns whether the
40 // |message| is handled in the function. 40 // |message| is handled in the function.
41 bool OnMediaPlayerMessageReceived(const IPC::Message& message, 41 bool OnMediaPlayerMessageReceived(const IPC::Message& message,
42 RenderFrameHost* render_frame_host); 42 RenderFrameHost* render_frame_host);
43 bool OnMediaPlayerSetCdmMessageReceived(const IPC::Message& message, 43 bool OnMediaPlayerSetCdmMessageReceived(const IPC::Message& message,
44 RenderFrameHost* render_frame_host); 44 RenderFrameHost* render_frame_host);
45 45
(...skipping 18 matching lines...) Expand all
64 MediaPlayerManagerMap media_player_managers_; 64 MediaPlayerManagerMap media_player_managers_;
65 #endif // defined(OS_ANDROID) 65 #endif // defined(OS_ANDROID)
66 66
67 private: 67 private:
68 DISALLOW_COPY_AND_ASSIGN(MediaWebContentsObserver); 68 DISALLOW_COPY_AND_ASSIGN(MediaWebContentsObserver);
69 }; 69 };
70 70
71 } // namespace content 71 } // namespace content
72 72
73 #endif // CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ 73 #endif // CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698