OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_DISPATCHER_HOST_H_ |
| 7 |
| 8 #include "content/public/browser/browser_message_filter.h" |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class NavControllerContext; |
| 15 |
| 16 class NavControllerDispatcherHost : public BrowserMessageFilter { |
| 17 public: |
| 18 explicit NavControllerDispatcherHost(NavControllerContext* context); |
| 19 |
| 20 // BrowserIOMessageFilter implementation |
| 21 virtual bool OnMessageReceived(const IPC::Message& message, |
| 22 bool* message_was_ok) OVERRIDE; |
| 23 |
| 24 protected: |
| 25 virtual ~NavControllerDispatcherHost(); |
| 26 |
| 27 private: |
| 28 // IPC Message handlers |
| 29 void OnRegisterController(int32 host_id, |
| 30 const string16& scope, |
| 31 const GURL& script_url); |
| 32 void OnUnregisterController(int32 host_id, const string16& scope); |
| 33 |
| 34 scoped_refptr<NavControllerContext> context_; |
| 35 }; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_DISPATCHER_HOST_H_ |
OLD | NEW |