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

Side by Side Diff: components/web_view/navigation_entry.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 unified diff | Download patch
« no previous file with comments | « components/web_view/navigation_entry.h ('k') | components/web_view/pending_web_view_load.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/web_view/navigation_entry.h"
6
7 #include <utility>
8
9 namespace web_view {
10
11 NavigationEntry::NavigationEntry(mojo::URLRequestPtr original_request)
12 : url_request_(std::move(original_request)) {
13 if (url_request_.originating_time().is_null())
14 url_request_.set_originating_time(base::TimeTicks::Now());
15 }
16
17 NavigationEntry::NavigationEntry(const GURL& raw_url)
18 : url_request_(raw_url) {}
19
20 NavigationEntry::~NavigationEntry() {}
21
22 mojo::URLRequestPtr NavigationEntry::BuildURLRequest(
23 bool update_originating_time) {
24 if (update_originating_time)
25 url_request_.set_originating_time(base::TimeTicks::Now());
26 return url_request_.Clone();
27 }
28
29 } // namespace web_view
OLDNEW
« no previous file with comments | « components/web_view/navigation_entry.h ('k') | components/web_view/pending_web_view_load.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698