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

Side by Side Diff: components/web_cache/renderer/web_cache_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_IMPL_H_ 5 #ifndef COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_IMPL_H_
6 #define COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_IMPL_H_ 6 #define COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "components/web_cache/public/interfaces/web_cache.mojom.h" 13 #include "components/web_cache/public/interfaces/web_cache.mojom.h"
14 #include "mojo/public/cpp/bindings/binding_set.h" 14 #include "mojo/public/cpp/bindings/binding_set.h"
15 15
16 namespace service_manager {
17 struct BindSourceInfo;
18 }
19
16 namespace web_cache { 20 namespace web_cache {
17 21
18 // This class implements the Mojo interface mojom::WebCache. 22 // This class implements the Mojo interface mojom::WebCache.
19 class WebCacheImpl : public mojom::WebCache { 23 class WebCacheImpl : public mojom::WebCache {
20 public: 24 public:
21 WebCacheImpl(); 25 WebCacheImpl();
22 ~WebCacheImpl() override; 26 ~WebCacheImpl() override;
23 27
24 void BindRequest(mojom::WebCacheRequest web_cache_request); 28 void BindRequest(const service_manager::BindSourceInfo& source_info,
29 mojom::WebCacheRequest web_cache_request);
25 30
26 // Needs to be called by RenderViews in case of navigations to execute 31 // Needs to be called by RenderViews in case of navigations to execute
27 // any 'clear cache' commands that were delayed until the next navigation. 32 // any 'clear cache' commands that were delayed until the next navigation.
28 void ExecutePendingClearCache(); 33 void ExecutePendingClearCache();
29 34
30 private: 35 private:
31 enum State { 36 enum State {
32 kInit, 37 kInit,
33 kNavigate_Pending, 38 kNavigate_Pending,
34 kClearCache_Pending, 39 kClearCache_Pending,
(...skipping 11 matching lines...) Expand all
46 State clear_cache_state_; 51 State clear_cache_state_;
47 52
48 mojo::BindingSet<mojom::WebCache> bindings_; 53 mojo::BindingSet<mojom::WebCache> bindings_;
49 54
50 DISALLOW_COPY_AND_ASSIGN(WebCacheImpl); 55 DISALLOW_COPY_AND_ASSIGN(WebCacheImpl);
51 }; 56 };
52 57
53 } // namespace web_cache 58 } // namespace web_cache
54 59
55 #endif // COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_IMPL_H_ 60 #endif // COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_IMPL_H_
OLDNEW
« no previous file with comments | « components/visitedlink/renderer/visitedlink_slave.cc ('k') | components/web_cache/renderer/web_cache_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698