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

Side by Side Diff: blimp/client/session/navigation_feature.h

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 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
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_
OLDNEW
« no previous file with comments | « blimp/client/session/blimp_client_session_linux.cc ('k') | blimp/client/session/navigation_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698