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

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: with plznavigate 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
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 static std::unique_ptr<AwContentsIoThreadClient> FromID(
jam 2017/03/09 22:13:05 nit: document, i.e. so someone reading this knows
sgurun-gerrit only 2017/03/10 18:40:58 Done.
67 int frame_tree_node_id);
68
66 // Returns the global thread client for service worker related callbacks. 69 // Returns the global thread client for service worker related callbacks.
67 // An empty scoped_ptr is a valid return value. 70 // An empty scoped_ptr is a valid return value.
68 static std::unique_ptr<AwContentsIoThreadClient> 71 static std::unique_ptr<AwContentsIoThreadClient>
69 GetServiceWorkerIoThreadClient(); 72 GetServiceWorkerIoThreadClient();
70 73
71 // Called on the IO thread when a subframe is created. 74 // Called on the IO thread when a subframe is created.
72 static void SubFrameCreated(int render_process_id, 75 static void SubFrameCreated(int render_process_id,
73 int parent_render_frame_id, 76 int parent_render_frame_id,
74 int child_render_frame_id); 77 int child_render_frame_id);
75 78
(...skipping 16 matching lines...) Expand all
92 // This method is called on the IO thread only. 95 // This method is called on the IO thread only.
93 virtual bool ShouldBlockNetworkLoads() const = 0; 96 virtual bool ShouldBlockNetworkLoads() const = 0;
94 97
95 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents. 98 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents.
96 virtual bool ShouldAcceptThirdPartyCookies() const = 0; 99 virtual bool ShouldAcceptThirdPartyCookies() const = 0;
97 }; 100 };
98 101
99 } // namespace android_webview 102 } // namespace android_webview
100 103
101 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 104 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698