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

Unified Diff: components/web_view/pending_web_view_load.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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 | « components/web_view/pending_web_view_load.h ('k') | components/web_view/public/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/pending_web_view_load.cc
diff --git a/components/web_view/pending_web_view_load.cc b/components/web_view/pending_web_view_load.cc
deleted file mode 100644
index 9969324c890578fd54a9a418f8659a5c8f171fcf..0000000000000000000000000000000000000000
--- a/components/web_view/pending_web_view_load.cc
+++ /dev/null
@@ -1,39 +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.
-
-#include "components/web_view/pending_web_view_load.h"
-
-#include <utility>
-
-#include "base/bind.h"
-#include "base/callback.h"
-#include "components/web_view/frame_connection.h"
-#include "components/web_view/web_view_impl.h"
-
-namespace web_view {
-
-PendingWebViewLoad::PendingWebViewLoad(WebViewImpl* web_view)
- : web_view_(web_view), is_content_handler_id_valid_(false) {}
-
-PendingWebViewLoad::~PendingWebViewLoad() {}
-
-void PendingWebViewLoad::Init(mojo::URLRequestPtr request) {
- DCHECK(!frame_connection_);
- pending_url_ = GURL(request->url.get());
- navigation_start_time_ =
- base::TimeTicks::FromInternalValue(request->originating_time_ticks);
- frame_connection_.reset(new FrameConnection);
- frame_connection_->Init(web_view_->shell_, std::move(request),
- base::Bind(&PendingWebViewLoad::OnGotContentHandlerID,
- base::Unretained(this)));
-}
-
-void PendingWebViewLoad::OnGotContentHandlerID() {
- is_content_handler_id_valid_ = true;
- if (web_view_->root_)
- web_view_->OnLoad(pending_url_);
- // The else case is handled by WebViewImpl when it gets the Window (|root_|).
-}
-
-} // namespace web_view
« no previous file with comments | « components/web_view/pending_web_view_load.h ('k') | components/web_view/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698