| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_ | 5 #ifndef BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_ |
| 6 #define BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_ | 6 #define BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_ |
| 7 | 7 |
| 8 #include "base/containers/small_map.h" | 8 #include "base/containers/small_map.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "blimp/client/blimp_client_export.h" | 10 #include "blimp/client/blimp_client_export.h" |
| 11 #include "blimp/net/blimp_message_processor.h" | 11 #include "blimp/net/blimp_message_processor.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 class SkBitmap; | 14 class SkBitmap; |
| 15 | 15 |
| 16 namespace blimp { | 16 namespace blimp { |
| 17 namespace client { |
| 17 | 18 |
| 18 // Handles all incoming and outgoing protobuf messages of type | 19 // Handles all incoming and outgoing protobuf messages of type |
| 19 // RenderWidget::NAVIGATION. Delegates can be added to be notified of incoming | 20 // RenderWidget::NAVIGATION. Delegates can be added to be notified of incoming |
| 20 // messages. | 21 // messages. |
| 21 class BLIMP_CLIENT_EXPORT NavigationFeature : public BlimpMessageProcessor { | 22 class BLIMP_CLIENT_EXPORT NavigationFeature : public BlimpMessageProcessor { |
| 22 public: | 23 public: |
| 23 // A delegate to be notified of specific navigation events related to a | 24 // A delegate to be notified of specific navigation events related to a |
| 24 // a particular tab. | 25 // a particular tab. |
| 25 class NavigationFeatureDelegate { | 26 class NavigationFeatureDelegate { |
| 26 public: | 27 public: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 typedef base::SmallMap<std::map<int, NavigationFeatureDelegate*>> DelegateMap; | 59 typedef base::SmallMap<std::map<int, NavigationFeatureDelegate*>> DelegateMap; |
| 59 | 60 |
| 60 DelegateMap delegates_; | 61 DelegateMap delegates_; |
| 61 | 62 |
| 62 // Used to send BlimpMessage::NAVIGATION messages to the engine. | 63 // Used to send BlimpMessage::NAVIGATION messages to the engine. |
| 63 scoped_ptr<BlimpMessageProcessor> outgoing_message_processor_; | 64 scoped_ptr<BlimpMessageProcessor> outgoing_message_processor_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(NavigationFeature); | 66 DISALLOW_COPY_AND_ASSIGN(NavigationFeature); |
| 66 }; | 67 }; |
| 67 | 68 |
| 69 } // namespace client |
| 68 } // namespace blimp | 70 } // namespace blimp |
| 69 | 71 |
| 70 #endif // BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_ | 72 #endif // BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_ |
| OLD | NEW |