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

Side by Side Diff: content/browser/appcache/appcache_dispatcher_host.h

Issue 631773003: Replacing the OVERRIDE with override and FINAL with final in content/browser/appcache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/process/process.h" 12 #include "base/process/process.h"
13 #include "content/browser/appcache/appcache_backend_impl.h" 13 #include "content/browser/appcache/appcache_backend_impl.h"
14 #include "content/browser/appcache/appcache_frontend_proxy.h" 14 #include "content/browser/appcache/appcache_frontend_proxy.h"
15 #include "content/public/browser/browser_message_filter.h" 15 #include "content/public/browser/browser_message_filter.h"
16 16
17 namespace content { 17 namespace content {
18 class ChromeAppCacheService; 18 class ChromeAppCacheService;
19 19
20 // Handles appcache related messages sent to the main browser process from 20 // Handles appcache related messages sent to the main browser process from
21 // its child processes. There is a distinct host for each child process. 21 // its child processes. There is a distinct host for each child process.
22 // Messages are handled on the IO thread. The BrowserRenderProcessHost and 22 // Messages are handled on the IO thread. The BrowserRenderProcessHost and
23 // WorkerProcessHost create an instance and delegates calls to it. 23 // WorkerProcessHost create an instance and delegates calls to it.
24 class AppCacheDispatcherHost : public BrowserMessageFilter { 24 class AppCacheDispatcherHost : public BrowserMessageFilter {
25 public: 25 public:
26 AppCacheDispatcherHost(ChromeAppCacheService* appcache_service, 26 AppCacheDispatcherHost(ChromeAppCacheService* appcache_service,
27 int process_id); 27 int process_id);
28 28
29 // BrowserIOMessageFilter implementation 29 // BrowserIOMessageFilter implementation
30 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 30 virtual void OnChannelConnected(int32 peer_pid) override;
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 31 virtual bool OnMessageReceived(const IPC::Message& message) override;
32 32
33 protected: 33 protected:
34 virtual ~AppCacheDispatcherHost(); 34 virtual ~AppCacheDispatcherHost();
35 35
36 // BrowserMessageFilter override. 36 // BrowserMessageFilter override.
37 virtual void BadMessageReceived() OVERRIDE; 37 virtual void BadMessageReceived() override;
38 38
39 private: 39 private:
40 // IPC message handlers 40 // IPC message handlers
41 void OnRegisterHost(int host_id); 41 void OnRegisterHost(int host_id);
42 void OnUnregisterHost(int host_id); 42 void OnUnregisterHost(int host_id);
43 void OnSetSpawningHostId(int host_id, int spawning_host_id); 43 void OnSetSpawningHostId(int host_id, int spawning_host_id);
44 void OnSelectCache(int host_id, const GURL& document_url, 44 void OnSelectCache(int host_id, const GURL& document_url,
45 int64 cache_document_was_loaded_from, 45 int64 cache_document_was_loaded_from,
46 const GURL& opt_manifest_url); 46 const GURL& opt_manifest_url);
47 void OnSelectCacheForWorker(int host_id, int parent_process_id, 47 void OnSelectCacheForWorker(int host_id, int parent_process_id,
(...skipping 23 matching lines...) Expand all
71 71
72 // The corresponding ChildProcessHost object's id(). 72 // The corresponding ChildProcessHost object's id().
73 int process_id_; 73 int process_id_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); 75 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost);
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 80 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_disk_cache_unittest.cc ('k') | content/browser/appcache/appcache_frontend_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698