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

Side by Side Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 2737663004: Introduce a secondary map for enabling plznavigate (Closed)
Patch Set: address jam review Created 3 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
« no previous file with comments | « no previous file | android_webview/browser/net/aw_request_interceptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // This method is called on the IO thread only. 56 // This method is called on the IO thread only.
57 virtual CacheMode GetCacheMode() const = 0; 57 virtual CacheMode GetCacheMode() const = 0;
58 58
59 // This will attempt to fetch the AwContentsIoThreadClient for the given 59 // This will attempt to fetch the AwContentsIoThreadClient for the given
60 // |render_process_id|, |render_frame_id| pair. 60 // |render_process_id|, |render_frame_id| pair.
61 // This method can be called from any thread. 61 // This method can be called from any thread.
62 // An empty scoped_ptr is a valid return value. 62 // An empty scoped_ptr is a valid return value.
63 static std::unique_ptr<AwContentsIoThreadClient> FromID(int render_process_id, 63 static std::unique_ptr<AwContentsIoThreadClient> FromID(int render_process_id,
64 int render_frame_id); 64 int render_frame_id);
65 65
66 // This map is useful when browser side navigations are enabled as
67 // render_frame_ids will not be valid anymore for some of the navigations.
68 static std::unique_ptr<AwContentsIoThreadClient> FromID(
69 int frame_tree_node_id);
70
66 // Returns the global thread client for service worker related callbacks. 71 // Returns the global thread client for service worker related callbacks.
67 // An empty scoped_ptr is a valid return value. 72 // An empty scoped_ptr is a valid return value.
68 static std::unique_ptr<AwContentsIoThreadClient> 73 static std::unique_ptr<AwContentsIoThreadClient>
69 GetServiceWorkerIoThreadClient(); 74 GetServiceWorkerIoThreadClient();
70 75
71 // Called on the IO thread when a subframe is created. 76 // Called on the IO thread when a subframe is created.
72 static void SubFrameCreated(int render_process_id, 77 static void SubFrameCreated(int render_process_id,
73 int parent_render_frame_id, 78 int parent_render_frame_id,
74 int child_render_frame_id); 79 int child_render_frame_id);
75 80
(...skipping 16 matching lines...) Expand all
92 // This method is called on the IO thread only. 97 // This method is called on the IO thread only.
93 virtual bool ShouldBlockNetworkLoads() const = 0; 98 virtual bool ShouldBlockNetworkLoads() const = 0;
94 99
95 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents. 100 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents.
96 virtual bool ShouldAcceptThirdPartyCookies() const = 0; 101 virtual bool ShouldAcceptThirdPartyCookies() const = 0;
97 }; 102 };
98 103
99 } // namespace android_webview 104 } // namespace android_webview
100 105
101 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 106 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_request_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698