| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_H_ | 5 #ifndef CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_H_ | 
| 6 #define CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_H_ | 6 #define CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_H_ | 
| 7 | 7 | 
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" | 
| 9 #include "chrome/common/ipc_message.h" | 9 #include "ipc/ipc_message.h" | 
| 10 | 10 | 
| 11 // Dispatches app cache related messages sent to a child process from the | 11 // Dispatches app cache related messages sent to a child process from the | 
| 12 // main browser process. There is one instance per child process. Messages | 12 // main browser process. There is one instance per child process. Messages | 
| 13 // are dispatched on the main child thread. The ChildThread base class | 13 // are dispatched on the main child thread. The ChildThread base class | 
| 14 // creates an instance and delegates calls to it. | 14 // creates an instance and delegates calls to it. | 
| 15 class AppCacheDispatcher { | 15 class AppCacheDispatcher { | 
| 16  public: | 16  public: | 
| 17   bool OnMessageReceived(const IPC::Message& msg); | 17   bool OnMessageReceived(const IPC::Message& msg); | 
| 18 | 18 | 
| 19  private: | 19  private: | 
| 20   // AppCacheContextImpl related messages | 20   // AppCacheContextImpl related messages | 
| 21   void OnAppCacheSelected(int context_id, | 21   void OnAppCacheSelected(int context_id, | 
| 22                           int select_request_id, | 22                           int select_request_id, | 
| 23                           int64 app_cache_id); | 23                           int64 app_cache_id); | 
| 24 }; | 24 }; | 
| 25 | 25 | 
| 26 #endif  // CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_H_ | 26 #endif  // CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_H_ | 
| OLD | NEW | 
|---|