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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2488573002: Refactor getInstalledRelatedApps code and add manifest logic and tests. (Closed)
Patch Set: Use SecurityOrigin, not WebSecurityOrigin. Created 3 years, 10 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 namespace blink { 87 namespace blink {
88 class WebContentDecryptionModule; 88 class WebContentDecryptionModule;
89 class WebPresentationClient; 89 class WebPresentationClient;
90 class WebPushClient; 90 class WebPushClient;
91 class WebSecurityOrigin; 91 class WebSecurityOrigin;
92 enum class WebCachePolicy; 92 enum class WebCachePolicy;
93 struct WebCompositionUnderline; 93 struct WebCompositionUnderline;
94 struct WebContextMenuData; 94 struct WebContextMenuData;
95 struct WebCursorInfo; 95 struct WebCursorInfo;
96 struct WebFindOptions; 96 struct WebFindOptions;
97 class WebRelatedAppsFetcher;
97 } // namespace blink 98 } // namespace blink
98 99
99 namespace gfx { 100 namespace gfx {
100 class Point; 101 class Point;
101 class Range; 102 class Range;
102 } 103 }
103 104
104 namespace media { 105 namespace media {
105 class CdmFactory; 106 class CdmFactory;
106 class DecoderFactory; 107 class DecoderFactory;
(...skipping 30 matching lines...) Expand all
137 class HistoryEntry; 138 class HistoryEntry;
138 class ManifestManager; 139 class ManifestManager;
139 class MediaInterfaceProvider; 140 class MediaInterfaceProvider;
140 class MediaStreamDispatcher; 141 class MediaStreamDispatcher;
141 class MediaStreamRendererFactory; 142 class MediaStreamRendererFactory;
142 class MediaPermissionDispatcher; 143 class MediaPermissionDispatcher;
143 class NavigationState; 144 class NavigationState;
144 class PepperPluginInstanceImpl; 145 class PepperPluginInstanceImpl;
145 class PresentationDispatcher; 146 class PresentationDispatcher;
146 class PushMessagingDispatcher; 147 class PushMessagingDispatcher;
148 class RelatedAppsFetcher;
147 class RenderAccessibilityImpl; 149 class RenderAccessibilityImpl;
148 class RendererMediaPlayerManager; 150 class RendererMediaPlayerManager;
149 class RendererPpapiHost; 151 class RendererPpapiHost;
150 class RenderFrameObserver; 152 class RenderFrameObserver;
151 class RenderViewImpl; 153 class RenderViewImpl;
152 class RenderWidget; 154 class RenderWidget;
153 class RenderWidgetFullscreenPepper; 155 class RenderWidgetFullscreenPepper;
154 class ResourceRequestBodyImpl; 156 class ResourceRequestBodyImpl;
155 class ScreenOrientationDispatcher; 157 class ScreenOrientationDispatcher;
156 class SharedWorkerRepository; 158 class SharedWorkerRepository;
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 int count, 631 int count,
630 bool final_update) override; 632 bool final_update) override;
631 void reportFindInPageSelection(int request_id, 633 void reportFindInPageSelection(int request_id,
632 int active_match_ordinal, 634 int active_match_ordinal,
633 const blink::WebRect& sel) override; 635 const blink::WebRect& sel) override;
634 void requestStorageQuota(blink::WebStorageQuotaType type, 636 void requestStorageQuota(blink::WebStorageQuotaType type,
635 unsigned long long requested_size, 637 unsigned long long requested_size,
636 blink::WebStorageQuotaCallbacks callbacks) override; 638 blink::WebStorageQuotaCallbacks callbacks) override;
637 blink::WebPushClient* pushClient() override; 639 blink::WebPushClient* pushClient() override;
638 blink::WebPresentationClient* presentationClient() override; 640 blink::WebPresentationClient* presentationClient() override;
641 blink::WebRelatedAppsFetcher* relatedAppsFetcher() override;
639 void willStartUsingPeerConnectionHandler( 642 void willStartUsingPeerConnectionHandler(
640 blink::WebRTCPeerConnectionHandler* handler) override; 643 blink::WebRTCPeerConnectionHandler* handler) override;
641 blink::WebUserMediaClient* userMediaClient() override; 644 blink::WebUserMediaClient* userMediaClient() override;
642 blink::WebEncryptedMediaClient* encryptedMediaClient() override; 645 blink::WebEncryptedMediaClient* encryptedMediaClient() override;
643 blink::WebString userAgentOverride() override; 646 blink::WebString userAgentOverride() override;
644 blink::WebString doNotTrackValue() override; 647 blink::WebString doNotTrackValue() override;
645 bool allowWebGL(bool default_value) override; 648 bool allowWebGL(bool default_value) override;
646 blink::WebScreenOrientationClient* webScreenOrientationClient() override; 649 blink::WebScreenOrientationClient* webScreenOrientationClient() override;
647 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override; 650 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override;
648 int64_t serviceWorkerID(blink::WebDataSource& data_source) override; 651 int64_t serviceWorkerID(blink::WebDataSource& data_source) override;
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 // process. 1302 // process.
1300 ManifestManager* manifest_manager_; 1303 ManifestManager* manifest_manager_;
1301 1304
1302 // The current accessibility mode. 1305 // The current accessibility mode.
1303 AccessibilityMode accessibility_mode_; 1306 AccessibilityMode accessibility_mode_;
1304 1307
1305 // Only valid if |accessibility_mode_| is anything other than 1308 // Only valid if |accessibility_mode_| is anything other than
1306 // AccessibilityModeOff. 1309 // AccessibilityModeOff.
1307 RenderAccessibilityImpl* render_accessibility_; 1310 RenderAccessibilityImpl* render_accessibility_;
1308 1311
1312 std::unique_ptr<RelatedAppsFetcher> related_apps_fetcher_;
1313
1309 // Manages play, pause notifications for WebMediaPlayer implementations; its 1314 // Manages play, pause notifications for WebMediaPlayer implementations; its
1310 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. 1315 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
1311 media::RendererWebMediaPlayerDelegate* media_player_delegate_; 1316 media::RendererWebMediaPlayerDelegate* media_player_delegate_;
1312 1317
1313 // The PreviewsState of this RenderFrame that indicates which Previews can 1318 // The PreviewsState of this RenderFrame that indicates which Previews can
1314 // be used. The PreviewsState is a bitmask of potentially several Previews 1319 // be used. The PreviewsState is a bitmask of potentially several Previews
1315 // optimizations. 1320 // optimizations.
1316 PreviewsState previews_state_; 1321 PreviewsState previews_state_;
1317 1322
1318 // Effective connection type when the document of this frame was fetched. 1323 // Effective connection type when the document of this frame was fetched.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 int enabled_bindings_ = 0; 1389 int enabled_bindings_ = 0;
1385 1390
1386 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1391 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1387 1392
1388 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1393 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1389 }; 1394 };
1390 1395
1391 } // namespace content 1396 } // namespace content
1392 1397
1393 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1398 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/installedapp/related_apps_fetcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698