| 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 #include "blimp/client/app/linux/blimp_client_session_linux.h" | 5 #include "blimp/client/app/linux/blimp_client_session_linux.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "blimp/client/app/linux/blimp_display_manager.h" | 11 #include "blimp/client/app/linux/blimp_display_manager.h" |
| 12 #include "ui/events/platform/platform_event_source.h" | 12 #include "ui/events/platform/platform_event_source.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace blimp { | 16 namespace blimp { |
| 17 namespace client { | 17 namespace client { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const int kDummyTabId = 0; | 20 const int kDummyTabId = 0; |
| 21 const std::string kDefaultAssignerUrl = | 21 const std::string kDefaultAssignerUrl = |
| 22 "https://blimp-pa.googleapis.com/v1/assignment"; | 22 "https://blimp-pa.googleapis.com/v1/assignment"; |
| 23 | 23 |
| 24 class FakeNavigationFeatureDelegate | 24 class FakeNavigationFeatureDelegate |
| 25 : public NavigationFeature::NavigationFeatureDelegate { | 25 : public NavigationFeature::NavigationFeatureDelegate { |
| 26 public: | 26 public: |
| 27 FakeNavigationFeatureDelegate(); | 27 FakeNavigationFeatureDelegate(); |
| 28 ~FakeNavigationFeatureDelegate(); | 28 ~FakeNavigationFeatureDelegate() override; |
| 29 | 29 |
| 30 // NavigationFeatureDelegate implementation. | 30 // NavigationFeatureDelegate implementation. |
| 31 void OnUrlChanged(int tab_id, const GURL& url) override; | 31 void OnUrlChanged(int tab_id, const GURL& url) override; |
| 32 void OnFaviconChanged(int tab_id, const SkBitmap& favicon) override; | 32 void OnFaviconChanged(int tab_id, const SkBitmap& favicon) override; |
| 33 void OnTitleChanged(int tab_id, const std::string& title) override; | 33 void OnTitleChanged(int tab_id, const std::string& title) override; |
| 34 void OnLoadingChanged(int tab_id, bool loading) override; | 34 void OnLoadingChanged(int tab_id, bool loading) override; |
| 35 void OnPageLoadStatusUpdate(int tab_id, bool completed) override; | 35 void OnPageLoadStatusUpdate(int tab_id, bool completed) override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(FakeNavigationFeatureDelegate); | 38 DISALLOW_COPY_AND_ASSIGN(FakeNavigationFeatureDelegate); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 BlimpClientSessionLinux::~BlimpClientSessionLinux() {} | 83 BlimpClientSessionLinux::~BlimpClientSessionLinux() {} |
| 84 | 84 |
| 85 void BlimpClientSessionLinux::OnClosed() { | 85 void BlimpClientSessionLinux::OnClosed() { |
| 86 base::MessageLoop::current()->QuitNow(); | 86 base::MessageLoop::current()->QuitNow(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace client | 89 } // namespace client |
| 90 } // namespace blimp | 90 } // namespace blimp |
| OLD | NEW |