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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar clean up Created 4 years, 9 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 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "content/browser/accessibility/browser_accessibility_manager.h" 24 #include "content/browser/accessibility/browser_accessibility_manager.h"
25 #include "content/browser/bad_message.h" 25 #include "content/browser/bad_message.h"
26 #include "content/browser/bluetooth/web_bluetooth_service_impl.h"
26 #include "content/browser/loader/global_routing_id.h" 27 #include "content/browser/loader/global_routing_id.h"
27 #include "content/browser/site_instance_impl.h" 28 #include "content/browser/site_instance_impl.h"
28 #include "content/browser/webui/web_ui_impl.h" 29 #include "content/browser/webui/web_ui_impl.h"
29 #include "content/common/accessibility_mode_enums.h" 30 #include "content/common/accessibility_mode_enums.h"
30 #include "content/common/ax_content_node_data.h" 31 #include "content/common/ax_content_node_data.h"
31 #include "content/common/content_export.h" 32 #include "content/common/content_export.h"
32 #include "content/common/frame_message_enums.h" 33 #include "content/common/frame_message_enums.h"
33 #include "content/common/frame_replication_state.h" 34 #include "content/common/frame_replication_state.h"
34 #include "content/common/image_downloader/image_downloader.mojom.h" 35 #include "content/common/image_downloader/image_downloader.mojom.h"
35 #include "content/common/mojo/service_registry_impl.h" 36 #include "content/common/mojo/service_registry_impl.h"
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 const content::StartNavigationParams& start_params, 732 const content::StartNavigationParams& start_params,
732 const content::RequestNavigationParams& request_params); 733 const content::RequestNavigationParams& request_params);
733 734
734 // Returns the child FrameTreeNode if |child_frame_routing_id| is an 735 // Returns the child FrameTreeNode if |child_frame_routing_id| is an
735 // immediate child of this FrameTreeNode. |child_frame_routing_id| is 736 // immediate child of this FrameTreeNode. |child_frame_routing_id| is
736 // considered untrusted, so the renderer process is killed if it refers to a 737 // considered untrusted, so the renderer process is killed if it refers to a
737 // FrameTreeNode that is not a child of this node. 738 // FrameTreeNode that is not a child of this node.
738 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, 739 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id,
739 bad_message::BadMessageReason reason); 740 bad_message::BadMessageReason reason);
740 741
742 // Creates a Web Bluetooth Service owned by the frame.
743 void CreateWebBluetoothService(
744 blink::mojom::WebBluetoothServiceRequest request);
745
741 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 746 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
742 // refcount that calls Shutdown when it reaches zero. This allows each 747 // refcount that calls Shutdown when it reaches zero. This allows each
743 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring 748 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
744 // we have a RenderViewHost for each RenderFrameHost. 749 // we have a RenderViewHost for each RenderFrameHost.
745 // TODO(creis): RenderViewHost will eventually go away and be replaced with 750 // TODO(creis): RenderViewHost will eventually go away and be replaced with
746 // some form of page context. 751 // some form of page context.
747 RenderViewHostImpl* render_view_host_; 752 RenderViewHostImpl* render_view_host_;
748 753
749 RenderFrameHostDelegate* delegate_; 754 RenderFrameHostDelegate* delegate_;
750 755
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 // long to execute, depending on the number of active frames in the 875 // long to execute, depending on the number of active frames in the
871 // SiteInstance. 876 // SiteInstance.
872 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; 877 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
873 878
874 scoped_ptr<ServiceRegistryImpl> service_registry_; 879 scoped_ptr<ServiceRegistryImpl> service_registry_;
875 880
876 #if defined(OS_ANDROID) 881 #if defined(OS_ANDROID)
877 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; 882 scoped_ptr<ServiceRegistryAndroid> service_registry_android_;
878 #endif 883 #endif
879 884
885 scoped_ptr<WebBluetoothServiceImpl> web_bluetooth_service_;
886
880 // The object managing the accessibility tree for this frame. 887 // The object managing the accessibility tree for this frame.
881 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; 888 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
882 889
883 // This is nonzero if we sent an accessibility reset to the renderer and 890 // This is nonzero if we sent an accessibility reset to the renderer and
884 // we're waiting for an IPC containing this reset token (sequentially 891 // we're waiting for an IPC containing this reset token (sequentially
885 // assigned) and a complete replacement accessibility tree. 892 // assigned) and a complete replacement accessibility tree.
886 int accessibility_reset_token_; 893 int accessibility_reset_token_;
887 894
888 // A count of the number of times we needed to reset accessibility, so 895 // A count of the number of times we needed to reset accessibility, so
889 // we don't keep trying to reset forever. 896 // we don't keep trying to reset forever.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 949
943 // NOTE: This must be the last member. 950 // NOTE: This must be the last member.
944 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 951 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
945 952
946 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 953 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
947 }; 954 };
948 955
949 } // namespace content 956 } // namespace content
950 957
951 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 958 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698