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

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

Issue 1929723002: [Blimp] Adds blimp engine browser test framework and LoadUrl test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_FEATURE_NAVIGATION_FEATURE_H_ 5 #ifndef BLIMP_CLIENT_FEATURE_NAVIGATION_FEATURE_H_
6 #define BLIMP_CLIENT_FEATURE_NAVIGATION_FEATURE_H_ 6 #define BLIMP_CLIENT_FEATURE_NAVIGATION_FEATURE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/containers/small_map.h" 11 #include "base/containers/small_map.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "blimp/net/blimp_message_processor.h" 13 #include "blimp/net/blimp_message_processor.h"
14 14
15 class GURL; 15 class GURL;
16 class SkBitmap; 16 class SkBitmap;
17 17
18 namespace blimp { 18 namespace blimp {
19 namespace client { 19 namespace client {
20 20
21 // Handles all incoming and outgoing protobuf messages of type 21 // Handles all incoming and outgoing protobuf messages of type
22 // RenderWidget::NAVIGATION. Delegates can be added to be notified of incoming 22 // RenderWidget::NAVIGATION. Delegates can be added to be notified of incoming
23 // messages. 23 // messages.
24 class NavigationFeature : public BlimpMessageProcessor { 24 class NavigationFeature : public BlimpMessageProcessor {
25 public: 25 public:
26 // A delegate to be notified of specific navigation events related to a 26 // A delegate to be notified of specific navigation events related to a
27 // a particular tab. 27 // a particular tab.
28 class NavigationFeatureDelegate { 28 class NavigationFeatureDelegate {
29 public: 29 public:
30 virtual ~NavigationFeatureDelegate() {}
30 virtual void OnUrlChanged(int tab_id, const GURL& url) = 0; 31 virtual void OnUrlChanged(int tab_id, const GURL& url) = 0;
31 virtual void OnFaviconChanged(int tab_id, const SkBitmap& favicon) = 0; 32 virtual void OnFaviconChanged(int tab_id, const SkBitmap& favicon) = 0;
32 virtual void OnTitleChanged(int tab_id, const std::string& title) = 0; 33 virtual void OnTitleChanged(int tab_id, const std::string& title) = 0;
33 virtual void OnLoadingChanged(int tab_id, bool loading) = 0; 34 virtual void OnLoadingChanged(int tab_id, bool loading) = 0;
34 virtual void OnPageLoadStatusUpdate(int tab_id, bool completed) = 0; 35 virtual void OnPageLoadStatusUpdate(int tab_id, bool completed) = 0;
35 }; 36 };
36 37
37 NavigationFeature(); 38 NavigationFeature();
38 ~NavigationFeature() override; 39 ~NavigationFeature() override;
39 40
(...skipping 26 matching lines...) Expand all
66 // Used to send BlimpMessage::NAVIGATION messages to the engine. 67 // Used to send BlimpMessage::NAVIGATION messages to the engine.
67 std::unique_ptr<BlimpMessageProcessor> outgoing_message_processor_; 68 std::unique_ptr<BlimpMessageProcessor> outgoing_message_processor_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(NavigationFeature); 70 DISALLOW_COPY_AND_ASSIGN(NavigationFeature);
70 }; 71 };
71 72
72 } // namespace client 73 } // namespace client
73 } // namespace blimp 74 } // namespace blimp
74 75
75 #endif // BLIMP_CLIENT_FEATURE_NAVIGATION_FEATURE_H_ 76 #endif // BLIMP_CLIENT_FEATURE_NAVIGATION_FEATURE_H_
OLDNEW
« no previous file with comments | « blimp/client/feature/mock_render_widget_feature_delegate.cc ('k') | blimp/client/feature/navigation_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698