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

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

Issue 1145013004: Introduce bad_message.h for chrome and NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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"
(...skipping 15 matching lines...) Expand all
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 void OnChannelConnected(int32 peer_pid) override; 30 void OnChannelConnected(int32 peer_pid) override;
31 bool OnMessageReceived(const IPC::Message& message) override; 31 bool OnMessageReceived(const IPC::Message& message) override;
32 32
33 protected: 33 protected:
34 ~AppCacheDispatcherHost() override; 34 ~AppCacheDispatcherHost() override;
35 35
36 // BrowserMessageFilter override.
37 void BadMessageReceived() override;
38
39 private: 36 private:
40 // IPC message handlers 37 // IPC message handlers
41 void OnRegisterHost(int host_id); 38 void OnRegisterHost(int host_id);
42 void OnUnregisterHost(int host_id); 39 void OnUnregisterHost(int host_id);
43 void OnSetSpawningHostId(int host_id, int spawning_host_id); 40 void OnSetSpawningHostId(int host_id, int spawning_host_id);
44 void OnSelectCache(int host_id, const GURL& document_url, 41 void OnSelectCache(int host_id, const GURL& document_url,
45 int64 cache_document_was_loaded_from, 42 int64 cache_document_was_loaded_from,
46 const GURL& opt_manifest_url); 43 const GURL& opt_manifest_url);
47 void OnSelectCacheForWorker(int host_id, int parent_process_id, 44 void OnSelectCacheForWorker(int host_id, int parent_process_id,
48 int parent_host_id); 45 int parent_host_id);
(...skipping 22 matching lines...) Expand all
71 68
72 // The corresponding ChildProcessHost object's id(). 69 // The corresponding ChildProcessHost object's id().
73 int process_id_; 70 int process_id_;
74 71
75 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); 72 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost);
76 }; 73 };
77 74
78 } // namespace content 75 } // namespace content
79 76
80 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 77 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_host_message_filter.cc ('k') | content/browser/appcache/appcache_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698