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

Side by Side Diff: content/browser/loader/resource_hints_handler_impl.h

Issue 2095303002: sendNavigationHint with mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sendNavigationHint mojo 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 | content/browser/loader/resource_hints_handler_impl.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/interface_request.h" 9 #include "mojo/public/cpp/bindings/interface_request.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h" 10 #include "mojo/public/cpp/bindings/strong_binding.h"
(...skipping 12 matching lines...) Expand all
23 ResourceHintsHandlerImpl(blink::mojom::ResourceHintsHandlerRequest request, 23 ResourceHintsHandlerImpl(blink::mojom::ResourceHintsHandlerRequest request,
24 ResourceContext* resource_context); 24 ResourceContext* resource_context);
25 25
26 ~ResourceHintsHandlerImpl() override; 26 ~ResourceHintsHandlerImpl() override;
27 27
28 // blink::mojom::ResourceHintsHandler: 28 // blink::mojom::ResourceHintsHandler:
29 void Preresolve(const GURL& url) override; 29 void Preresolve(const GURL& url) override;
30 void Preconnect(const GURL& url, 30 void Preconnect(const GURL& url,
31 bool credentials_flag, 31 bool credentials_flag,
32 uint8_t num_connections) override; 32 uint8_t num_connections) override;
33 void SendNavigationHint(const GURL& url,
34 blink::mojom::NavigationHintType type) override;
33 35
34 static void RegisterConnection( 36 static void RegisterConnection(
35 RenderProcessHost* render_process_host, 37 RenderProcessHost* render_process_host,
36 blink::mojom::ResourceHintsHandlerRequest request); 38 blink::mojom::ResourceHintsHandlerRequest request);
37 39
38 private: 40 private:
39 static void RegisterConnectionOnIOThread( 41 static void RegisterConnectionOnIOThread(
40 ResourceContext* resource_context, 42 ResourceContext* resource_context,
41 blink::mojom::ResourceHintsHandlerRequest request); 43 blink::mojom::ResourceHintsHandlerRequest request);
42 ResourceContext* resource_context_; 44 ResourceContext* resource_context_;
43 mojo::StrongBinding<blink::mojom::ResourceHintsHandler> binding_; 45 mojo::StrongBinding<blink::mojom::ResourceHintsHandler> binding_;
44 46
45 DISALLOW_COPY_AND_ASSIGN(ResourceHintsHandlerImpl); 47 DISALLOW_COPY_AND_ASSIGN(ResourceHintsHandlerImpl);
46 }; 48 };
47 49
48 } // namespace content 50 } // namespace content
49 51
50 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ 52 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_hints_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698