diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-24 21:01:04 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-24 21:01:04 +0000 |
commit | 35e251d043bf98206b75b3065841bf25c21d7fcc (patch) | |
tree | fd7a8db171b59c062c9c20bdcb6679be1f0a8641 /chrome/browser | |
parent | 6ccc2ce194ab57c29c30e5d0bbb845fa36184c1e (diff) | |
download | chromium_src-35e251d043bf98206b75b3065841bf25c21d7fcc.zip chromium_src-35e251d043bf98206b75b3065841bf25c21d7fcc.tar.gz chromium_src-35e251d043bf98206b75b3065841bf25c21d7fcc.tar.bz2 |
Move LoadNotificationDetails to content/.
BUG=71097
TEST=still builds
Review URL: http://codereview.chromium.org/6966037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/debugger/devtools_window.cc | 2 | ||||
-rw-r--r-- | chrome/browser/external_tab_container_win.cc | 2 | ||||
-rw-r--r-- | chrome/browser/load_notification_details.h | 52 | ||||
-rw-r--r-- | chrome/browser/metrics/metrics_service.cc | 2 |
4 files changed, 3 insertions, 55 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc index 1d7e5a9f..89b32a6 100644 --- a/chrome/browser/debugger/devtools_window.cc +++ b/chrome/browser/debugger/devtools_window.cc @@ -12,7 +12,6 @@ #include "chrome/browser/debugger/devtools_manager.h" #include "chrome/browser/debugger/devtools_window.h" #include "chrome/browser/extensions/extension_service.h" -#include "chrome/browser/load_notification_details.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/prefs/scoped_user_pref_update.h" #include "chrome/browser/profiles/profile.h" @@ -27,6 +26,7 @@ #include "chrome/common/render_messages.h" #include "chrome/common/url_constants.h" #include "content/browser/in_process_webkit/session_storage_namespace.h" +#include "content/browser/load_notification_details.h" #include "content/browser/renderer_host/render_view_host.h" #include "content/browser/tab_contents/navigation_controller.h" #include "content/browser/tab_contents/navigation_entry.h" diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc index 81974fd..db1e903 100644 --- a/chrome/browser/external_tab_container_win.cc +++ b/chrome/browser/external_tab_container_win.cc @@ -19,7 +19,6 @@ #include "chrome/browser/google/google_util.h" #include "chrome/browser/history/history_types.h" #include "chrome/browser/history/history_tab_helper.h" -#include "chrome/browser/load_notification_details.h" #include "chrome/browser/page_info_window.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser.h" @@ -35,6 +34,7 @@ #include "chrome/common/chrome_constants.h" #include "chrome/common/render_messages.h" #include "chrome/common/url_constants.h" +#include "content/browser/load_notification_details.h" #include "content/browser/renderer_host/render_process_host.h" #include "content/browser/renderer_host/render_view_host.h" #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" diff --git a/chrome/browser/load_notification_details.h b/chrome/browser/load_notification_details.h deleted file mode 100644 index 6e96c6e..0000000 --- a/chrome/browser/load_notification_details.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2006-2008 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. - -// The LoadNotificationDetails object contains additional details about a -// page load that has been completed. It was created to let the MetricsService -// log page load metrics. - -#ifndef CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__ -#define CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__ -#pragma once - -#include "base/basictypes.h" -#include "base/time.h" -#include "content/browser/tab_contents/navigation_controller.h" -#include "content/common/page_transition_types.h" -#include "googleurl/src/gurl.h" - -class LoadNotificationDetails { - public: - LoadNotificationDetails(const GURL& url, - PageTransition::Type origin, - base::TimeDelta load_time, - NavigationController* controller, - int session_index) - : url_(url), - load_time_(load_time), - session_index_(session_index), - origin_(origin), - controller_(controller) {} - - ~LoadNotificationDetails() {} - - const GURL& url() const { return url_; } - PageTransition::Type origin() const { return origin_; } - base::TimeDelta load_time() const { return load_time_; } - int session_index() const { return session_index_; } - NavigationController* controller() const { return controller_; } - - private: - GURL url_; // the URL loaded - base::TimeDelta load_time_; // length of time the page load took - int session_index_; // index of the load within the tab session - PageTransition::Type origin_; // type of action that caused the load - NavigationController* controller_; // tells us which tab the load was in - - LoadNotificationDetails() {} - - DISALLOW_COPY_AND_ASSIGN(LoadNotificationDetails); -}; - -#endif // CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__ diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc index ce77ae5..9946ae8 100644 --- a/chrome/browser/metrics/metrics_service.cc +++ b/chrome/browser/metrics/metrics_service.cc @@ -169,7 +169,6 @@ #include "base/values.h" #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/browser_process.h" -#include "chrome/browser/load_notification_details.h" #include "chrome/browser/memory_details.h" #include "chrome/browser/metrics/histogram_synchronizer.h" #include "chrome/browser/metrics/metrics_log.h" @@ -184,6 +183,7 @@ #include "chrome/common/guid.h" #include "chrome/common/pref_names.h" #include "chrome/common/render_messages.h" +#include "content/browser/load_notification_details.h" #include "content/browser/renderer_host/render_process_host.h" #include "content/common/child_process_info.h" #include "content/common/notification_service.h" |