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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2060933002: Let Flash join and be controlled by media session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_to_contents
Patch Set: addressed dcheng's comments Created 4 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 struct FaviconURL; 85 struct FaviconURL;
86 struct LoadNotificationDetails; 86 struct LoadNotificationDetails;
87 struct MHTMLGenerationParams; 87 struct MHTMLGenerationParams;
88 struct ResourceRedirectDetails; 88 struct ResourceRedirectDetails;
89 struct ResourceRequestDetails; 89 struct ResourceRequestDetails;
90 90
91 #if defined(OS_ANDROID) 91 #if defined(OS_ANDROID)
92 class WebContentsAndroid; 92 class WebContentsAndroid;
93 #endif 93 #endif
94 94
95 #if defined(ENABLE_PLUGINS)
96 class PepperPlaybackObserver;
97 #endif
98
95 // Factory function for the implementations that content knows about. Takes 99 // Factory function for the implementations that content knows about. Takes
96 // ownership of |delegate|. 100 // ownership of |delegate|.
97 WebContentsView* CreateWebContentsView( 101 WebContentsView* CreateWebContentsView(
98 WebContentsImpl* web_contents, 102 WebContentsImpl* web_contents,
99 WebContentsViewDelegate* delegate, 103 WebContentsViewDelegate* delegate,
100 RenderViewHostDelegateView** render_view_host_delegate_view); 104 RenderViewHostDelegateView** render_view_host_delegate_view);
101 105
102 class CONTENT_EXPORT WebContentsImpl 106 class CONTENT_EXPORT WebContentsImpl
103 : public NON_EXPORTED_BASE(WebContents), 107 : public NON_EXPORTED_BASE(WebContents),
104 public NON_EXPORTED_BASE(RenderFrameHostDelegate), 108 public NON_EXPORTED_BASE(RenderFrameHostDelegate),
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 void OnOpenColorChooser(int color_chooser_id, 941 void OnOpenColorChooser(int color_chooser_id,
938 SkColor color, 942 SkColor color,
939 const std::vector<ColorSuggestion>& suggestions); 943 const std::vector<ColorSuggestion>& suggestions);
940 void OnEndColorChooser(int color_chooser_id); 944 void OnEndColorChooser(int color_chooser_id);
941 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); 945 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color);
942 void OnWebUISend(const GURL& source_url, 946 void OnWebUISend(const GURL& source_url,
943 const std::string& name, 947 const std::string& name,
944 const base::ListValue& args); 948 const base::ListValue& args);
945 void OnUpdatePageImportanceSignals(const PageImportanceSignals& signals); 949 void OnUpdatePageImportanceSignals(const PageImportanceSignals& signals);
946 #if defined(ENABLE_PLUGINS) 950 #if defined(ENABLE_PLUGINS)
947 void OnPepperInstanceCreated(); 951 void OnPepperInstanceCreated(int32_t pp_instance);
948 void OnPepperInstanceDeleted(); 952 void OnPepperInstanceDeleted(int32_t pp_instance);
949 void OnPepperPluginHung(int plugin_child_id, 953 void OnPepperPluginHung(int plugin_child_id,
950 const base::FilePath& path, 954 const base::FilePath& path,
951 bool is_hung); 955 bool is_hung);
956 void OnPepperStartsPlayback(int32_t pp_instance);
957 void OnPepperStopsPlayback(int32_t pp_instance);
952 void OnPluginCrashed(const base::FilePath& plugin_path, 958 void OnPluginCrashed(const base::FilePath& plugin_path,
953 base::ProcessId plugin_pid); 959 base::ProcessId plugin_pid);
954 void OnRequestPpapiBrokerPermission(int routing_id, 960 void OnRequestPpapiBrokerPermission(int routing_id,
955 const GURL& url, 961 const GURL& url,
956 const base::FilePath& plugin_path); 962 const base::FilePath& plugin_path);
957 963
958 // Callback function when requesting permission to access the PPAPI broker. 964 // Callback function when requesting permission to access the PPAPI broker.
959 // |result| is true if permission was granted. 965 // |result| is true if permission was granted.
960 void OnPpapiBrokerPermissionResult(int routing_id, bool result); 966 void OnPpapiBrokerPermissionResult(int routing_id, bool result);
961 967
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 size_t bluetooth_connected_device_count_; 1382 size_t bluetooth_connected_device_count_;
1377 1383
1378 bool virtual_keyboard_requested_; 1384 bool virtual_keyboard_requested_;
1379 1385
1380 // Notifies ResourceDispatcherHostImpl of various events related to loading. 1386 // Notifies ResourceDispatcherHostImpl of various events related to loading.
1381 std::unique_ptr<LoaderIOThreadNotifier> loader_io_thread_notifier_; 1387 std::unique_ptr<LoaderIOThreadNotifier> loader_io_thread_notifier_;
1382 1388
1383 // Manages media players, CDMs, and power save blockers for media. 1389 // Manages media players, CDMs, and power save blockers for media.
1384 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; 1390 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_;
1385 1391
1392 #if defined(ENABLE_PLUGINS)
1393 // Observes pepper playback changes, and notifies MediaSession.
1394 std::unique_ptr<PepperPlaybackObserver> pepper_playback_observer_;
1395 #endif // defined(ENABLE_PLUGINS)
1396
1386 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; 1397 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_;
1387 1398
1388 PageImportanceSignals page_importance_signals_; 1399 PageImportanceSignals page_importance_signals_;
1389 1400
1390 bool page_scale_factor_is_one_; 1401 bool page_scale_factor_is_one_;
1391 1402
1392 // TextInputManager tracks the IME-related state for all the 1403 // TextInputManager tracks the IME-related state for all the
1393 // RenderWidgetHostViews on this WebContents. Only exists on the outermost 1404 // RenderWidgetHostViews on this WebContents. Only exists on the outermost
1394 // WebContents and is automatically destroyed when a WebContents becomes an 1405 // WebContents and is automatically destroyed when a WebContents becomes an
1395 // inner WebContents by attaching to an outer WebContents. Then the 1406 // inner WebContents by attaching to an outer WebContents. Then the
(...skipping 24 matching lines...) Expand all
1420 // Adds/removes a callback called on creation of each new WebContents. 1431 // Adds/removes a callback called on creation of each new WebContents.
1421 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1432 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1422 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1433 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1423 1434
1424 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1435 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1425 }; 1436 };
1426 1437
1427 } // namespace content 1438 } // namespace content
1428 1439
1429 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1440 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/media/session/pepper_player_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698