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

Unified Diff: blimp/client/core/blimp_contents_impl.cc

Issue 2166563003: Split //blimp/client/core to relevant parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-assignment-source
Patch Set: Created 4 years, 5 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/core/blimp_contents_impl.h ('k') | blimp/client/core/blimp_contents_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/blimp_contents_impl.cc
diff --git a/blimp/client/core/blimp_contents_impl.cc b/blimp/client/core/blimp_contents_impl.cc
deleted file mode 100644
index 3e93e9240e82b6f48fafdffb511afe154fe3921a..0000000000000000000000000000000000000000
--- a/blimp/client/core/blimp_contents_impl.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2016 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.
-
-#include "blimp/client/core/blimp_contents_impl.h"
-
-#include "base/memory/ptr_util.h"
-#include "base/supports_user_data.h"
-#include "blimp/client/public/blimp_contents_observer.h"
-
-#if defined(OS_ANDROID)
-#include "blimp/client/core/android/blimp_contents_impl_android.h"
-#endif // OS_ANDROID
-
-namespace blimp {
-namespace client {
-
-namespace {
-
-#if defined(OS_ANDROID)
-const char kBlimpContentsImplAndroidKey[] = "blimp_contents_impl_android";
-#endif // OS_ANDROID
-}
-
-BlimpContentsImpl::BlimpContentsImpl() : navigation_controller_(this) {}
-
-BlimpContentsImpl::~BlimpContentsImpl() {}
-
-#if defined(OS_ANDROID)
-
-base::android::ScopedJavaLocalRef<jobject>
-BlimpContentsImpl::GetJavaBlimpContentsImpl() {
- return GetBlimpContentsImplAndroid()->GetJavaObject();
-}
-
-BlimpContentsImplAndroid* BlimpContentsImpl::GetBlimpContentsImplAndroid() {
- BlimpContentsImplAndroid* blimp_contents_impl_android =
- static_cast<BlimpContentsImplAndroid*>(
- GetUserData(kBlimpContentsImplAndroidKey));
- if (!blimp_contents_impl_android) {
- blimp_contents_impl_android = new BlimpContentsImplAndroid(this);
- SetUserData(kBlimpContentsImplAndroidKey, blimp_contents_impl_android);
- }
- return blimp_contents_impl_android;
-}
-
-#endif // defined(OS_ANDROID)
-
-BlimpNavigationControllerImpl& BlimpContentsImpl::GetNavigationController() {
- return navigation_controller_;
-}
-
-void BlimpContentsImpl::AddObserver(BlimpContentsObserver* observer) {
- observers_.AddObserver(observer);
-}
-
-void BlimpContentsImpl::RemoveObserver(BlimpContentsObserver* observer) {
- observers_.RemoveObserver(observer);
-}
-
-void BlimpContentsImpl::NotifyURLLoaded(const GURL& url) {
- FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, OnURLUpdated(url));
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/core/blimp_contents_impl.h ('k') | blimp/client/core/blimp_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698