Database 119 chrome/browser/browsing_data/browsing_data_remover_browsertest.cc IN_PROC_BROWSER_TEST_F(BrowsingDataRemoverBrowserTest, Database) { Database 70 chrome/browser/performance_monitor/database.cc const char Database::kDatabaseSequenceToken[] = Database 84 chrome/browser/performance_monitor/database.cc base::Time Database::SystemClock::GetTime() { Database 89 chrome/browser/performance_monitor/database.cc scoped_ptr<Database> Database::Create(base::FilePath path) { Database 95 chrome/browser/performance_monitor/database.cc scoped_ptr<Database> database; Database 98 chrome/browser/performance_monitor/database.cc database.reset(new Database(path)); Database 106 chrome/browser/performance_monitor/database.cc bool Database::AddStateValue(const std::string& key, const std::string& value) { Database 113 chrome/browser/performance_monitor/database.cc std::string Database::GetStateValue(const std::string& key) { Database 120 chrome/browser/performance_monitor/database.cc bool Database::AddEvent(const Event& event) { Database 130 chrome/browser/performance_monitor/database.cc std::vector<TimeRange> Database::GetActiveIntervals(const base::Time& start, Database 160 chrome/browser/performance_monitor/database.cc Database::EventVector Database::GetEvents(EventType type, Database 194 chrome/browser/performance_monitor/database.cc Database::EventTypeSet Database::GetEventTypes(const base::Time& start, Database 213 chrome/browser/performance_monitor/database.cc bool Database::AddMetric(const std::string& activity, Database 245 chrome/browser/performance_monitor/database.cc bool Database::UpdateMaxValue(const std::string& activity, Database 260 chrome/browser/performance_monitor/database.cc Database::MetricTypeSet Database::GetActiveMetrics(const base::Time& start, Database 312 chrome/browser/performance_monitor/database.cc std::set<std::string> Database::GetActiveActivities(MetricType metric_type, Database 328 chrome/browser/performance_monitor/database.cc double Database::GetMaxStatsForActivityAndMetric(const std::string& activity, Database 338 chrome/browser/performance_monitor/database.cc bool Database::GetRecentStatsForActivityAndMetric(const std::string& activity, Database 357 chrome/browser/performance_monitor/database.cc scoped_ptr<Database::MetricVector> Database::GetStatsForActivityAndMetric( Database 392 chrome/browser/performance_monitor/database.cc Database::MetricVectorMap Database::GetStatsForMetricByActivity( Database 427 chrome/browser/performance_monitor/database.cc Database::Database(const base::FilePath& path) Database 441 chrome/browser/performance_monitor/database.cc Database::~Database() { Database 444 chrome/browser/performance_monitor/database.cc bool Database::InitDBs() { Database 473 chrome/browser/performance_monitor/database.cc scoped_ptr<leveldb::DB> Database::SafelyOpenDatabase( Database 538 chrome/browser/performance_monitor/database.cc bool Database::Close() { Database 550 chrome/browser/performance_monitor/database.cc void Database::LoadRecents() { Database 562 chrome/browser/performance_monitor/database.cc void Database::LoadMaxValues() { Database 574 chrome/browser/performance_monitor/database.cc void Database::UpdateActiveInterval() { Database 99 chrome/browser/performance_monitor/database.h class Database { Database 118 chrome/browser/performance_monitor/database.h virtual ~Database(); Database 120 chrome/browser/performance_monitor/database.h static scoped_ptr<Database> Create(base::FilePath path); Database 252 chrome/browser/performance_monitor/database.h explicit Database(const base::FilePath& path); Database 318 chrome/browser/performance_monitor/database.h DISALLOW_COPY_AND_ASSIGN(Database); Database 32 chrome/browser/performance_monitor/database_unittest.cc explicit DatabaseTestHelper(Database* database) : database_(database) { } Database 79 chrome/browser/performance_monitor/database_unittest.cc Database* database_; Database 83 chrome/browser/performance_monitor/database_unittest.cc class TestingClock : public Database::Clock { Database 104 chrome/browser/performance_monitor/database_unittest.cc db_ = Database::Create(temp_dir_.path()); Database 106 chrome/browser/performance_monitor/database_unittest.cc db_->set_clock(scoped_ptr<Database::Clock>(clock_)); Database 122 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db_; Database 123 chrome/browser/performance_monitor/database_unittest.cc Database::Clock* clock_; Database 156 chrome/browser/performance_monitor/database_unittest.cc db_ = Database::Create(temp_dir_.path()); Database 158 chrome/browser/performance_monitor/database_unittest.cc db_->set_clock(scoped_ptr<Database::Clock>(clock_)); Database 182 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db_; Database 183 chrome/browser/performance_monitor/database_unittest.cc Database::Clock* clock_; Database 192 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(temp_dir.path()); Database 205 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db_1 = Database::Create(temp_dir.path()); Database 206 chrome/browser/performance_monitor/database_unittest.cc db_1->set_clock(scoped_ptr<Database::Clock>(clock_1)); Database 214 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db_2 = Database::Create(temp_dir.path()); Database 215 chrome/browser/performance_monitor/database_unittest.cc db_2->set_clock(scoped_ptr<Database::Clock>(clock_2)); Database 223 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db_3 = Database::Create(temp_dir.path()); Database 224 chrome/browser/performance_monitor/database_unittest.cc db_3->set_clock(scoped_ptr<Database::Clock>(clock_3)); Database 243 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(temp_dir.path()); Database 244 chrome/browser/performance_monitor/database_unittest.cc db->set_clock(scoped_ptr<Database::Clock>(clock)); Database 264 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(temp_dir.path()); Database 265 chrome/browser/performance_monitor/database_unittest.cc db->set_clock(scoped_ptr<Database::Clock>(clock)); Database 277 chrome/browser/performance_monitor/database_unittest.cc Database::EventVector events = db_->GetEvents(); Database 307 chrome/browser/performance_monitor/database_unittest.cc Database::EventTypeSet types = db_->GetEventTypes(); Database 318 chrome/browser/performance_monitor/database_unittest.cc Database::EventVector events = db_->GetEvents(start_time, clock_->GetTime()); Database 324 chrome/browser/performance_monitor/database_unittest.cc Database::EventVector events = db_->GetEvents(EVENT_EXTENSION_INSTALL); Database 340 chrome/browser/performance_monitor/database_unittest.cc Database::EventVector events = db_->GetEvents(); Database 348 chrome/browser/performance_monitor/database_unittest.cc Database::EventVector events = db_->GetEvents(EVENT_EXTENSION_DISABLE); Database 370 chrome/browser/performance_monitor/database_unittest.cc Database::EventVector events = db_->GetEvents(start_time, end_time); Database 382 chrome/browser/performance_monitor/database_unittest.cc Database::MetricTypeSet active_metrics = Database 385 chrome/browser/performance_monitor/database_unittest.cc Database::MetricTypeSet expected_metrics; Database 402 chrome/browser/performance_monitor/database_unittest.cc scoped_ptr<Database> db = Database::Create(dir.path()); Database 404 chrome/browser/performance_monitor/database_unittest.cc db->set_clock(scoped_ptr<Database::Clock>(new TestingClock())); Database 425 chrome/browser/performance_monitor/database_unittest.cc Database::MetricVector stats = *db_->GetStatsForActivityAndMetric( Database 450 chrome/browser/performance_monitor/database_unittest.cc Database::MetricVectorMap stats_map = db_->GetStatsForMetricByActivity( Database 453 chrome/browser/performance_monitor/database_unittest.cc linked_ptr<Database::MetricVector> stats = stats_map[activity_]; Database 480 chrome/browser/performance_monitor/database_unittest.cc Database::MetricVector stats = *db_->GetStatsForActivityAndMetric( Database 510 chrome/browser/performance_monitor/database_unittest.cc Database::MetricVector stats = Database 527 chrome/browser/performance_monitor/database_unittest.cc Database::MetricVector stats = Database 88 chrome/browser/performance_monitor/performance_monitor.cc void DeleteDatabaseOnBackgroundThread(Database* database) { Database 112 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 174 chrome/browser/performance_monitor/performance_monitor.cc database_ = Database::Create(database_path_); Database 200 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 271 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 333 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 425 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 464 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 623 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 638 chrome/browser/performance_monitor/performance_monitor.cc Database::kDatabaseSequenceToken, Database 35 chrome/browser/performance_monitor/performance_monitor.h class Database; Database 95 chrome/browser/performance_monitor/performance_monitor.h Database* database() { return database_.get(); } Database 195 chrome/browser/performance_monitor/performance_monitor.h scoped_ptr<Database> database_; Database 122 chrome/browser/performance_monitor/performance_monitor_browsertest.cc const Database::EventVector& events) { Database 134 chrome/browser/performance_monitor/performance_monitor_browsertest.cc const Database::EventVector& events, Database 185 chrome/browser/performance_monitor/performance_monitor_browsertest.cc void GetEventsOnBackgroundThread(Database::EventVector* events) { Database 198 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector GetEvents() { Database 204 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events; Database 206 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::kDatabaseSequenceToken, Database 216 chrome/browser/performance_monitor/performance_monitor_browsertest.cc void GetStatsOnBackgroundThread(Database::MetricVector* metrics, Database 224 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector GetStats(MetricType type) { Database 228 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector metrics; Database 230 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::kDatabaseSequenceToken, Database 247 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::kDatabaseSequenceToken, Database 249 chrome/browser/performance_monitor/performance_monitor_browsertest.cc base::Bind(base::IgnoreResult(&Database::AddStateValue), Database 261 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::kDatabaseSequenceToken, Database 401 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 435 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 496 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 523 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 542 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 565 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector stats = GetStats(METRIC_CPU_USAGE); Database 612 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 635 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 657 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 691 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::EventVector events = GetEvents(); Database 715 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector metrics = GetStats(METRIC_TEST_STARTUP_TIME); Database 730 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector metrics = GetStats(METRIC_TEST_STARTUP_TIME); Database 752 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector metrics = GetStats(METRIC_PAGE_LOAD_TIME); Database 779 chrome/browser/performance_monitor/performance_monitor_browsertest.cc Database::MetricVector metrics = GetStats(METRIC_NETWORK_BYTES_READ); Database 24 chrome/browser/performance_monitor/performance_monitor_util.cc pool->GetNamedSequenceToken(Database::kDatabaseSequenceToken); Database 23 chrome/browser/performance_monitor/startup_timer.cc void AddMetricToDatabaseOnBackgroundThread(Database* database, Database 116 chrome/browser/performance_monitor/startup_timer.cc Database::kDatabaseSequenceToken, Database 133 chrome/browser/performance_monitor/startup_timer.cc Database::kDatabaseSequenceToken, Database 230 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database* db = PerformanceMonitor::GetInstance()->database(); Database 252 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database* db = PerformanceMonitor::GetInstance()->database(); Database 264 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database::EventVector event_vector = db->GetEvents(*iter, start, end); Database 266 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc for (Database::EventVector::iterator event = event_vector.begin(); Database 321 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc Database* db = PerformanceMonitor::GetInstance()->database(); Database 343 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc scoped_ptr<Database::MetricVector> metric_vector = Database 370 chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc for (Database::MetricVector::const_iterator metric_point = Database 40 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc const Database::MetricVector* metrics, Database 46 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc Database::MetricVector::const_iterator metric = metrics->begin(); Database 70 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc scoped_ptr<Database::MetricVector> NoAggregation::AggregateInterval( Database 72 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc Database::MetricVector::const_iterator* metric, Database 73 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc const Database::MetricVector::const_iterator& metric_end, Database 77 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc scoped_ptr<Database::MetricVector> aggregated_series( Database 78 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc new Database::MetricVector()); Database 86 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc scoped_ptr<Database::MetricVector> MedianAggregation::AggregateInterval( Database 88 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc Database::MetricVector::const_iterator* metric, Database 89 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc const Database::MetricVector::const_iterator& metric_end, Database 93 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc scoped_ptr<Database::MetricVector> aggregated_series( Database 94 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc new Database::MetricVector()); Database 117 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc scoped_ptr<Database::MetricVector> MeanAggregation::AggregateInterval( Database 119 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc Database::MetricVector::const_iterator* metric, Database 120 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc const Database::MetricVector::const_iterator& metric_end, Database 124 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc scoped_ptr<Database::MetricVector> aggregated_series( Database 125 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc new Database::MetricVector()); Database 169 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.cc const Database::MetricVector* metrics, Database 13 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h typedef std::vector<Database::MetricVector> VectorOfMetricVectors; Database 32 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h const Database::MetricVector* metrics, Database 46 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h virtual scoped_ptr<Database::MetricVector> AggregateInterval( Database 48 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h Database::MetricVector::const_iterator* metric, Database 49 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h const Database::MetricVector::const_iterator& metric_end, Database 58 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h virtual scoped_ptr<Database::MetricVector> AggregateInterval( Database 60 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h Database::MetricVector::const_iterator* metric, Database 61 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h const Database::MetricVector::const_iterator& metric_end, Database 69 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h virtual scoped_ptr<Database::MetricVector> AggregateInterval( Database 71 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h Database::MetricVector::const_iterator* metric, Database 72 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h const Database::MetricVector::const_iterator& metric_end, Database 80 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h virtual scoped_ptr<Database::MetricVector> AggregateInterval( Database 82 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h Database::MetricVector::const_iterator* metric, Database 83 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h const Database::MetricVector::const_iterator& metric_end, Database 112 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h scoped_ptr<std::vector<Database::MetricVector> > AggregateMetric( Database 114 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util.h const Database::MetricVector* metrics, Database 21 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc scoped_ptr<Database::MetricVector> AggregateSingleInterval( Database 23 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc const Database::MetricVector* metrics, Database 28 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector::const_iterator metric = metrics->begin(); Database 45 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc return scoped_ptr<Database::MetricVector>(); Database 53 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector metric_vector; Database 59 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc scoped_ptr<Database::MetricVector> aggregated_metric = Database 80 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector metric_vector; Database 82 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector aggregated_metric = Database 110 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector metric_vector; Database 119 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector aggregated_metric = Database 150 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector metric_vector; Database 164 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector aggregated_metric = Database 206 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector metric_vector; Database 222 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc std::vector<Database::MetricVector> results = Database 231 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc Database::MetricVector metric_series = results[0]; Database 234 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc for (Database::MetricVector::const_iterator iter = metric_series.begin(); Database 244 chrome/browser/ui/webui/performance_monitor/performance_monitor_ui_util_unittest.cc for (Database::MetricVector::const_iterator iter = metric_series.begin(); Database 124 components/dom_distiller/core/dom_distiller_database.cc void InitFromTaskRunner(DomDistillerDatabase::Database* database, Database 133 components/dom_distiller/core/dom_distiller_database.cc void UpdateEntriesFromTaskRunner(DomDistillerDatabase::Database* database, Database 141 components/dom_distiller/core/dom_distiller_database.cc void LoadEntriesFromTaskRunner(DomDistillerDatabase::Database* database, Database 161 components/dom_distiller/core/dom_distiller_database.cc InitWithDatabase(scoped_ptr<Database>(new LevelDB()), database_dir, callback); Database 164 components/dom_distiller/core/dom_distiller_database.cc void DomDistillerDatabase::InitWithDatabase(scoped_ptr<Database> database, Database 68 components/dom_distiller/core/dom_distiller_database.h class Database { Database 74 components/dom_distiller/core/dom_distiller_database.h virtual ~Database() {} Database 79 components/dom_distiller/core/dom_distiller_database.h class LevelDB : public Database { Database 107 components/dom_distiller/core/dom_distiller_database.h void InitWithDatabase(scoped_ptr<Database> database, Database 117 components/dom_distiller/core/dom_distiller_database.h scoped_ptr<Database> db_; Database 30 components/dom_distiller/core/dom_distiller_database_unittest.cc class MockDB : public DomDistillerDatabase::Database { Database 116 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 133 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 167 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 189 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 220 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 251 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 284 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db), Database 315 components/dom_distiller/core/dom_distiller_database_unittest.cc scoped_ptr<DomDistillerDatabase::Database>(mock_db),