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

Side by Side Diff: chrome/browser/predictors/resource_prefetch_common.h

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving to WeakPtrs and RVHD. Created 8 years, 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
7 #pragma once
8
9 #include "base/time.h"
10 #include "googleurl/src/gurl.h"
11
12 namespace content {
13 class WebContents;
14 }
15
16 namespace predictors {
17
18 // Represents a single navigation for a render view.
19 struct NavigationID {
20 NavigationID();
dominich 2012/05/30 15:35:01 would you consider a constructor that takes the pr
Shishir 2012/05/30 18:07:15 This would lead to the UrlRequestSummary also havi
21 NavigationID(const NavigationID& other);
22 explicit NavigationID(const content::WebContents& web_contents);
23 bool operator<(const NavigationID& rhs) const;
24 bool operator==(const NavigationID& rhs) const;
25
26 bool IsSameRenderer(const NavigationID& other) const;
27
28 int render_process_id_;
29 int render_view_id_;
30 GURL main_frame_url_;
31
32 // NOTE: Even though we store the time ticks here, it is not used during
33 // comparison of two NavigationIDs because it cannot always be determined
34 // correctly.
35 base::TimeTicks creation_time_;
36 };
37
38 } // namespace predictors
39
40 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698