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

Unified Diff: blimp/client/session/navigation_feature.h

Issue 1636163002: Restructure contents of blimp/client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/session/navigation_feature.h
diff --git a/blimp/client/session/navigation_feature.h b/blimp/client/session/navigation_feature.h
deleted file mode 100644
index 5aa5c4a9e57fe7b6b320c5b23ba14b0efbdd8fac..0000000000000000000000000000000000000000
--- a/blimp/client/session/navigation_feature.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_
-#define BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_
-
-#include "base/containers/small_map.h"
-#include "base/macros.h"
-#include "blimp/client/blimp_client_export.h"
-#include "blimp/net/blimp_message_processor.h"
-
-class GURL;
-class SkBitmap;
-
-namespace blimp {
-namespace client {
-
-// Handles all incoming and outgoing protobuf messages of type
-// RenderWidget::NAVIGATION. Delegates can be added to be notified of incoming
-// messages.
-class BLIMP_CLIENT_EXPORT NavigationFeature : public BlimpMessageProcessor {
- public:
- // A delegate to be notified of specific navigation events related to a
- // a particular tab.
- class NavigationFeatureDelegate {
- public:
- virtual void OnUrlChanged(int tab_id, const GURL& url) = 0;
- virtual void OnFaviconChanged(int tab_id, const SkBitmap& favicon) = 0;
- virtual void OnTitleChanged(int tab_id, const std::string& title) = 0;
- virtual void OnLoadingChanged(int tab_id, bool loading) = 0;
- };
-
- NavigationFeature();
- ~NavigationFeature() override;
-
- // Set the BlimpMessageProcessor that will be used to send
- // BlimpMessage::NAVIGATION messages to the engine.
- void set_outgoing_message_processor(
- scoped_ptr<BlimpMessageProcessor> processor);
-
- // Sets a NavigationMessageDelegate to be notified of all navigation messages
- // for |tab_id| from the engine.
- void SetDelegate(int tab_id, NavigationFeatureDelegate* delegate);
- void RemoveDelegate(int tab_id);
-
- void NavigateToUrlText(int tab_id, const std::string& url_text);
- void Reload(int tab_id);
- void GoForward(int tab_id);
- void GoBack(int tab_id);
-
- private:
- // BlimpMessageProcessor implementation.
- void ProcessMessage(scoped_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) override;
-
- NavigationFeatureDelegate* FindDelegate(const int tab_id);
-
- typedef base::SmallMap<std::map<int, NavigationFeatureDelegate*>> DelegateMap;
-
- DelegateMap delegates_;
-
- // Used to send BlimpMessage::NAVIGATION messages to the engine.
- scoped_ptr<BlimpMessageProcessor> outgoing_message_processor_;
-
- DISALLOW_COPY_AND_ASSIGN(NavigationFeature);
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_SESSION_NAVIGATION_FEATURE_H_
« 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