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

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

Issue 2551093002: Route Pepper MediaSession messages to frames (Closed)
Patch Set: nits Created 4 years 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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 void OnOpenColorChooser(int color_chooser_id, 971 void OnOpenColorChooser(int color_chooser_id,
972 SkColor color, 972 SkColor color,
973 const std::vector<ColorSuggestion>& suggestions); 973 const std::vector<ColorSuggestion>& suggestions);
974 void OnEndColorChooser(int color_chooser_id); 974 void OnEndColorChooser(int color_chooser_id);
975 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); 975 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color);
976 void OnWebUISend(const GURL& source_url, 976 void OnWebUISend(const GURL& source_url,
977 const std::string& name, 977 const std::string& name,
978 const base::ListValue& args); 978 const base::ListValue& args);
979 void OnUpdatePageImportanceSignals(const PageImportanceSignals& signals); 979 void OnUpdatePageImportanceSignals(const PageImportanceSignals& signals);
980 #if BUILDFLAG(ENABLE_PLUGINS) 980 #if BUILDFLAG(ENABLE_PLUGINS)
981 void OnPepperInstanceCreated(int32_t pp_instance); 981 void OnPepperInstanceCreated(RenderFrameHost* render_frame_host,
982 void OnPepperInstanceDeleted(int32_t pp_instance); 982 int32_t pp_instance);
983 void OnPepperInstanceDeleted(RenderFrameHost* render_frame_host,
984 int32_t pp_instance);
983 void OnPepperPluginHung(int plugin_child_id, 985 void OnPepperPluginHung(int plugin_child_id,
984 const base::FilePath& path, 986 const base::FilePath& path,
985 bool is_hung); 987 bool is_hung);
986 void OnPepperStartsPlayback(int32_t pp_instance); 988 void OnPepperStartsPlayback(RenderFrameHost* render_frame_host,
987 void OnPepperStopsPlayback(int32_t pp_instance); 989 int32_t pp_instance);
990 void OnPepperStopsPlayback(RenderFrameHost* render_frame_host,
991 int32_t pp_instance);
988 void OnPluginCrashed(const base::FilePath& plugin_path, 992 void OnPluginCrashed(const base::FilePath& plugin_path,
989 base::ProcessId plugin_pid); 993 base::ProcessId plugin_pid);
990 void OnRequestPpapiBrokerPermission(int routing_id, 994 void OnRequestPpapiBrokerPermission(int routing_id,
991 const GURL& url, 995 const GURL& url,
992 const base::FilePath& plugin_path); 996 const base::FilePath& plugin_path);
993 997
994 // Callback function when requesting permission to access the PPAPI broker. 998 // Callback function when requesting permission to access the PPAPI broker.
995 // |result| is true if permission was granted. 999 // |result| is true if permission was granted.
996 void OnPpapiBrokerPermissionResult(int routing_id, bool result); 1000 void OnPpapiBrokerPermissionResult(int routing_id, bool result);
997 1001
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 // Adds/removes a callback called on creation of each new WebContents. 1494 // Adds/removes a callback called on creation of each new WebContents.
1491 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1495 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1492 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1496 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1493 1497
1494 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1498 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1495 }; 1499 };
1496 1500
1497 } // namespace content 1501 } // namespace content
1498 1502
1499 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1503 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698