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

Side by Side Diff: chrome/browser/renderer_host/chrome_render_message_filter.h

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert BUILD.gn Created 4 years, 5 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 | chrome/browser/renderer_host/chrome_render_message_filter.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 CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/sequenced_task_runner_helpers.h" 13 #include "base/sequenced_task_runner_helpers.h"
14 #include "content/public/browser/browser_message_filter.h" 14 #include "content/public/browser/browser_message_filter.h"
15 15
16 class GURL; 16 class GURL;
17 class Profile; 17 class Profile;
18 18
19 namespace blink {
20 enum class WebNavigationHintType;
21 }
22
19 namespace chrome_browser_net { 23 namespace chrome_browser_net {
20 class Predictor; 24 class Predictor;
21 } 25 }
22 26
23 namespace content_settings { 27 namespace content_settings {
24 class CookieSettings; 28 class CookieSettings;
25 } 29 }
26 30
27 namespace network_hints { 31 namespace network_hints {
28 struct LookupRequest; 32 struct LookupRequest;
(...skipping 15 matching lines...) Expand all
44 content::BrowserThread::ID* thread) override; 48 content::BrowserThread::ID* thread) override;
45 49
46 private: 50 private:
47 friend class content::BrowserThread; 51 friend class content::BrowserThread;
48 friend class base::DeleteHelper<ChromeRenderMessageFilter>; 52 friend class base::DeleteHelper<ChromeRenderMessageFilter>;
49 53
50 ~ChromeRenderMessageFilter() override; 54 ~ChromeRenderMessageFilter() override;
51 55
52 void OnDnsPrefetch(const network_hints::LookupRequest& request); 56 void OnDnsPrefetch(const network_hints::LookupRequest& request);
53 void OnPreconnect(const GURL& url, bool allow_credentials, int count); 57 void OnPreconnect(const GURL& url, bool allow_credentials, int count);
58 void OnNavigationHint(const GURL& url, blink::WebNavigationHintType type);
54 void OnUpdatedCacheStats(uint64_t min_capacity, 59 void OnUpdatedCacheStats(uint64_t min_capacity,
55 uint64_t max_capacity, 60 uint64_t max_capacity,
56 uint64_t capacity, 61 uint64_t capacity,
57 uint64_t live_size, 62 uint64_t live_size,
58 uint64_t dead_size); 63 uint64_t dead_size);
59 64
60 void OnAllowDatabase(int render_frame_id, 65 void OnAllowDatabase(int render_frame_id,
61 const GURL& origin_url, 66 const GURL& origin_url,
62 const GURL& top_origin_url, 67 const GURL& top_origin_url,
63 const base::string16& name, 68 const base::string16& name,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // used on the IO thread. 134 // used on the IO thread.
130 chrome_browser_net::Predictor* predictor_; 135 chrome_browser_net::Predictor* predictor_;
131 136
132 // Used to look up permissions at database creation time. 137 // Used to look up permissions at database creation time.
133 scoped_refptr<content_settings::CookieSettings> cookie_settings_; 138 scoped_refptr<content_settings::CookieSettings> cookie_settings_;
134 139
135 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); 140 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter);
136 }; 141 };
137 142
138 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 143 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698