diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-29 09:02:49 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-29 09:02:49 +0000 |
commit | 62546eb28b7455191b89f3d50e102ebaac7e37de (patch) | |
tree | ac0242a707dcedd7674db6d6331c315b5f684181 /chrome | |
parent | 3ec0907d83baa36b48cfc237c6a27cfa4a468c00 (diff) | |
download | chromium_src-62546eb28b7455191b89f3d50e102ebaac7e37de.zip chromium_src-62546eb28b7455191b89f3d50e102ebaac7e37de.tar.gz chromium_src-62546eb28b7455191b89f3d50e102ebaac7e37de.tar.bz2 |
Remove navigation_performance_viewer.{cc,h} from the SCons build,
and for real.
TBR: brettw
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/SConscript | 2 | ||||
-rw-r--r-- | chrome/browser/navigation_performance_viewer.cc | 54 | ||||
-rw-r--r-- | chrome/browser/navigation_performance_viewer.h | 57 |
3 files changed, 1 insertions, 112 deletions
diff --git a/chrome/browser/SConscript b/chrome/browser/SConscript index e5499ca..67dde35 100644 --- a/chrome/browser/SConscript +++ b/chrome/browser/SConscript @@ -46,6 +46,7 @@ env.Prepend( 'LIBXML_STATIC', 'PNG_USER_CONFIG', 'CHROME_PNG_WRITE_SUPPORT', + 'GOOGLE_CHROME_BUILD', ], CCFLAGS = [ '/TP', @@ -200,7 +201,6 @@ input_files = [ 'native_ui_contents.cc', 'navigation_controller.cc', 'navigation_entry.cc', - 'navigation_performance_viewer.cc', 'net/dns_global.cc', 'net/dns_host_info.cc', 'net/dns_master.cc', diff --git a/chrome/browser/navigation_performance_viewer.cc b/chrome/browser/navigation_performance_viewer.cc deleted file mode 100644 index 25ce460..0000000 --- a/chrome/browser/navigation_performance_viewer.cc +++ /dev/null @@ -1,54 +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. - -#include "chrome/browser/navigation_performance_viewer.h" - -NavigationPerformanceViewer::NavigationPerformanceViewer(int session_id) - : session_id_(session_id) { -} - -NavigationPerformanceViewer::~NavigationPerformanceViewer() { - Reset(); -} - -void NavigationPerformanceViewer::AddPage(PageLoadTracker* page) { - if (!page) - return; - - page_list_.push_back(page); -} - -PageLoadTracker* NavigationPerformanceViewer::GetPageReference(uint32 index) { - if (index < 0 || index >= page_list_.size()) - return NULL; - - return page_list_.at(index); -} - -int NavigationPerformanceViewer::GetSize() { - return static_cast<int>(page_list_.size()); -} - -void NavigationPerformanceViewer::Reset() { - for (NavigationProfiler::PageTrackerIterator itr = page_list_.begin(); - itr != page_list_.end(); ++itr) { - delete (*itr); - } - - page_list_.clear(); -} - -void NavigationPerformanceViewer::AppendText(std::wstring* text) { - if (!text) - return; - - for (NavigationProfiler::PageTrackerIterator itr = page_list_.begin(); - itr != page_list_.end(); ++itr) { - - text->append(L"\r\n"); - (*itr)->AppendText(text); - text->append(L"\r\n-----------------------------------\r\n"); - } -} - diff --git a/chrome/browser/navigation_performance_viewer.h b/chrome/browser/navigation_performance_viewer.h deleted file mode 100644 index 12b9371..0000000 --- a/chrome/browser/navigation_performance_viewer.h +++ /dev/null @@ -1,57 +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. -// -// NavigationPerformanceViewer retrieves performance data collected in -// NavigationProfiler and generates reports. -// Depending on the configuration, NavigationPerformanceViewer can write -// the performance report to a log file, to "about:network" tab, or display -// it through graphic UI. - -#ifndef CHROME_NAVIGATION_PERFORMANCE_VIEWER_H__ -#define CHROME_NAVIGATION_PERFORMANCE_VIEWER_H__ - -#include <list> - -#include "chrome/browser/navigation_profiler.h" -#include "chrome/browser/page_load_tracker.h" -#include "net/url_request/url_request_job_tracker.h" - -class NavigationPerformanceViewer { - public: - explicit NavigationPerformanceViewer(int session_id); - virtual ~NavigationPerformanceViewer(); - - // Add a new PageLoadTracker to the page list. - // The NavigationPerformanceViewer owns the PageLoadTracker from now on. - void AddPage(PageLoadTracker* page); - - // Get a reference to the PageLoadTracker with given index. - PageLoadTracker* GetPageReference(uint32 index); - - // Get the total number of pages in the list - int GetSize(); - - // Reset the page list - void Reset(); - - // Append the text report of the page list to the input string. - void AppendText(std::wstring* text); - - int session_id() const { return session_id_; } - - private: - - // List of PageLoadTrackers that record performance measurement of page - // navigations. - NavigationProfiler::PageTrackerVector page_list_; - - // The unique ID of the profiling session when the performance data in page - // list is collected. - int session_id_; - - DISALLOW_EVIL_CONSTRUCTORS(NavigationPerformanceViewer); -}; - -#endif // #ifndef CHROME_NAVIGATION_PERFORMANCE_VIEWER_H__ - |