Chromium Code Reviews

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

Issue 622793002: Group the different permission related methods in the content api. (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.
Jump to:
View unified diff |
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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "content/browser/accessibility/browser_accessibility_manager.h" 17 #include "content/browser/accessibility/browser_accessibility_manager.h"
18 #include "content/browser/site_instance_impl.h" 18 #include "content/browser/site_instance_impl.h"
19 #include "content/common/accessibility_mode_enums.h" 19 #include "content/common/accessibility_mode_enums.h"
20 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
21 #include "content/common/mojo/service_registry_impl.h" 21 #include "content/common/mojo/service_registry_impl.h"
22 #include "content/public/browser/render_frame_host.h" 22 #include "content/public/browser/render_frame_host.h"
23 #include "content/public/common/javascript_message_type.h" 23 #include "content/public/common/javascript_message_type.h"
24 #include "net/http/http_response_headers.h" 24 #include "net/http/http_response_headers.h"
25 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
26 #include "third_party/WebKit/public/web/WebTextDirection.h" 25 #include "third_party/WebKit/public/web/WebTextDirection.h"
27 #include "ui/accessibility/ax_node_data.h" 26 #include "ui/accessibility/ax_node_data.h"
28 #include "ui/base/page_transition_types.h" 27 #include "ui/base/page_transition_types.h"
29 28
30 #if defined(OS_ANDROID) 29 #if defined(OS_ANDROID)
31 #include "content/browser/mojo/service_registry_android.h" 30 #include "content/browser/mojo/service_registry_android.h"
32 #endif 31 #endif
33 32
34 class GURL; 33 class GURL;
35 struct AccessibilityHostMsg_EventParams; 34 struct AccessibilityHostMsg_EventParams;
(...skipping 401 matching lines...)
437 436
438 // Updates the state of this RenderFrameHost and clears any waiting state 437 // Updates the state of this RenderFrameHost and clears any waiting state
439 // that is no longer relevant. 438 // that is no longer relevant.
440 void SetState(RenderFrameHostImplState rfh_state); 439 void SetState(RenderFrameHostImplState rfh_state);
441 440
442 // Returns whether the given URL is allowed to commit in the current process. 441 // Returns whether the given URL is allowed to commit in the current process.
443 // This is a more conservative check than RenderProcessHost::FilterURL, since 442 // This is a more conservative check than RenderProcessHost::FilterURL, since
444 // it will be used to kill processes that commit unauthorized URLs. 443 // it will be used to kill processes that commit unauthorized URLs.
445 bool CanCommitURL(const GURL& url); 444 bool CanCommitURL(const GURL& url);
446 445
447 void PlatformNotificationPermissionRequestDone( 446 void PlatformNotificationPermissionRequestDone(int request_id, bool granted);
448 int request_id, blink::WebNotificationPermission permission);
449 447
450 // Update the the singleton FrameAccessibility instance with a map 448 // Update the the singleton FrameAccessibility instance with a map
451 // from accessibility node id to the frame routing id of a cross-process 449 // from accessibility node id to the frame routing id of a cross-process
452 // iframe. 450 // iframe.
453 void UpdateCrossProcessIframeAccessibility( 451 void UpdateCrossProcessIframeAccessibility(
454 const std::map<int32, int> node_to_frame_routing_id_map); 452 const std::map<int32, int> node_to_frame_routing_id_map);
455 453
456 // Update the the singleton FrameAccessibility instance with a map 454 // Update the the singleton FrameAccessibility instance with a map
457 // from accessibility node id to the browser plugin instance id of a 455 // from accessibility node id to the browser plugin instance id of a
458 // guest WebContents. 456 // guest WebContents.
(...skipping 108 matching lines...)
567 565
568 // NOTE: This must be the last member. 566 // NOTE: This must be the last member.
569 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 567 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
570 568
571 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 569 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
572 }; 570 };
573 571
574 } // namespace content 572 } // namespace content
575 573
576 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 574 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine