| Index: chrome/browser/predictors/resource_prefetch_common.h
|
| diff --git a/chrome/browser/predictors/resource_prefetch_common.h b/chrome/browser/predictors/resource_prefetch_common.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9a4614e2cd07c15a32e1a0979dc6e9b63e0b1d43
|
| --- /dev/null
|
| +++ b/chrome/browser/predictors/resource_prefetch_common.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
|
| +#define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
|
| +#pragma once
|
| +
|
| +#include "base/time.h"
|
| +#include "googleurl/src/gurl.h"
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +namespace predictors {
|
| +
|
| +// Represents a single navigation for a render view.
|
| +struct NavigationID {
|
| + NavigationID();
|
| + NavigationID(const NavigationID& other);
|
| + explicit NavigationID(const content::WebContents& web_contents);
|
| + bool operator<(const NavigationID& rhs) const;
|
| + bool operator==(const NavigationID& rhs) const;
|
| +
|
| + bool IsSameRenderer(const NavigationID& other) const;
|
| +
|
| + int render_process_id_;
|
| + int render_view_id_;
|
| + GURL main_frame_url_;
|
| +
|
| + // NOTE: Even though we store the time ticks here, it is not used during
|
| + // comparison of two NavigationIDs because it cannot always be determined
|
| + // correctly.
|
| + base::TimeTicks creation_time_;
|
| +};
|
| +
|
| +} // namespace predictors
|
| +
|
| +#endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
|
|
|