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

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: Created 8 years, 7 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 {
dominich 2012/05/21 16:16:53 This should be a class (it has constructors, opera
Shishir 2012/05/23 01:46:46 I don't think it is significant enough to warrant
20 NavigationID();
21 NavigationID(const NavigationID& other);
dominich 2012/05/21 16:16:53 Try explicit here - I don't know if STL is using d
Shishir 2012/05/23 01:46:46 STL doenst like it.
22 NavigationID(const content::WebContents& web_contents);
dominich 2012/05/21 16:16:53 This should be explicit as you call it directly.
Shishir 2012/05/23 01:46:46 Done.
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_;
dominich 2012/05/21 16:16:53 Do these all need to be public?
Shishir 2012/05/23 01:46:46 Unless we want to expose each member through funct
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