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

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

Issue 2488573002: Refactor getInstalledRelatedApps code and add manifest logic and tests. (Closed)
Patch Set: Rebase. 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 namespace blink { 86 namespace blink {
87 class WebContentDecryptionModule; 87 class WebContentDecryptionModule;
88 class WebPresentationClient; 88 class WebPresentationClient;
89 class WebPushClient; 89 class WebPushClient;
90 class WebSecurityOrigin; 90 class WebSecurityOrigin;
91 enum class WebCachePolicy; 91 enum class WebCachePolicy;
92 struct WebCompositionUnderline; 92 struct WebCompositionUnderline;
93 struct WebContextMenuData; 93 struct WebContextMenuData;
94 struct WebCursorInfo; 94 struct WebCursorInfo;
95 struct WebFindOptions; 95 struct WebFindOptions;
96 class WebRelatedAppsFetcher;
96 } // namespace blink 97 } // namespace blink
97 98
98 namespace gfx { 99 namespace gfx {
99 class Point; 100 class Point;
100 class Range; 101 class Range;
101 } 102 }
102 103
103 namespace media { 104 namespace media {
104 class CdmFactory; 105 class CdmFactory;
105 class DecoderFactory; 106 class DecoderFactory;
(...skipping 30 matching lines...) Expand all
136 class HistoryEntry; 137 class HistoryEntry;
137 class ManifestManager; 138 class ManifestManager;
138 class MediaInterfaceProvider; 139 class MediaInterfaceProvider;
139 class MediaStreamDispatcher; 140 class MediaStreamDispatcher;
140 class MediaStreamRendererFactory; 141 class MediaStreamRendererFactory;
141 class MediaPermissionDispatcher; 142 class MediaPermissionDispatcher;
142 class NavigationState; 143 class NavigationState;
143 class PepperPluginInstanceImpl; 144 class PepperPluginInstanceImpl;
144 class PresentationDispatcher; 145 class PresentationDispatcher;
145 class PushMessagingDispatcher; 146 class PushMessagingDispatcher;
147 class RelatedAppsFetcher;
146 class RenderAccessibilityImpl; 148 class RenderAccessibilityImpl;
147 class RendererMediaPlayerManager; 149 class RendererMediaPlayerManager;
148 class RendererMediaSessionManager; 150 class RendererMediaSessionManager;
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;
(...skipping 473 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 // process. 1309 // process.
1307 ManifestManager* manifest_manager_; 1310 ManifestManager* manifest_manager_;
1308 1311
1309 // The current accessibility mode. 1312 // The current accessibility mode.
1310 AccessibilityMode accessibility_mode_; 1313 AccessibilityMode accessibility_mode_;
1311 1314
1312 // Only valid if |accessibility_mode_| is anything other than 1315 // Only valid if |accessibility_mode_| is anything other than
1313 // AccessibilityModeOff. 1316 // AccessibilityModeOff.
1314 RenderAccessibilityImpl* render_accessibility_; 1317 RenderAccessibilityImpl* render_accessibility_;
1315 1318
1319 std::unique_ptr<RelatedAppsFetcher> related_apps_fetcher_;
1320
1316 // Manages play, pause notifications for WebMediaPlayer implementations; its 1321 // Manages play, pause notifications for WebMediaPlayer implementations; its
1317 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. 1322 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
1318 media::RendererWebMediaPlayerDelegate* media_player_delegate_; 1323 media::RendererWebMediaPlayerDelegate* media_player_delegate_;
1319 1324
1320 // The PreviewsState of this RenderFrame that indicates which Previews can 1325 // The PreviewsState of this RenderFrame that indicates which Previews can
1321 // be used. The PreviewsState is a bitmask of potentially several Previews 1326 // be used. The PreviewsState is a bitmask of potentially several Previews
1322 // optimizations. 1327 // optimizations.
1323 PreviewsState previews_state_; 1328 PreviewsState previews_state_;
1324 1329
1325 // Effective connection type when the document of this frame was fetched. 1330 // Effective connection type when the document of this frame was fetched.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 int enabled_bindings_ = 0; 1396 int enabled_bindings_ = 0;
1392 1397
1393 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1398 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1394 1399
1395 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1400 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1396 }; 1401 };
1397 1402
1398 } // namespace content 1403 } // namespace content
1399 1404
1400 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1405 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698