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

Side by Side Diff: chrome/browser/browsing_data/cookies_tree_model.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
6 #define CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
7 7
8 // TODO(viettrungluu): This header file #includes far too much and has too much 8 // TODO(viettrungluu): This header file #includes far too much and has too much
9 // inline code (which shouldn't be inline). 9 // inline code (which shouldn't be inline).
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // CookieTreeRootNode --------------------------------------------------------- 171 // CookieTreeRootNode ---------------------------------------------------------
172 // The node at the root of the CookieTree that gets inserted into the view. 172 // The node at the root of the CookieTree that gets inserted into the view.
173 class CookieTreeRootNode : public CookieTreeNode { 173 class CookieTreeRootNode : public CookieTreeNode {
174 public: 174 public:
175 explicit CookieTreeRootNode(CookiesTreeModel* model); 175 explicit CookieTreeRootNode(CookiesTreeModel* model);
176 virtual ~CookieTreeRootNode(); 176 virtual ~CookieTreeRootNode();
177 177
178 CookieTreeHostNode* GetOrCreateHostNode(const GURL& url); 178 CookieTreeHostNode* GetOrCreateHostNode(const GURL& url);
179 179
180 // CookieTreeNode methods: 180 // CookieTreeNode methods:
181 virtual CookiesTreeModel* GetModel() const OVERRIDE; 181 virtual CookiesTreeModel* GetModel() const override;
182 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 182 virtual DetailedInfo GetDetailedInfo() const override;
183 183
184 private: 184 private:
185 CookiesTreeModel* model_; 185 CookiesTreeModel* model_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(CookieTreeRootNode); 187 DISALLOW_COPY_AND_ASSIGN(CookieTreeRootNode);
188 }; 188 };
189 189
190 // CookieTreeHostNode ------------------------------------------------------- 190 // CookieTreeHostNode -------------------------------------------------------
191 class CookieTreeHostNode : public CookieTreeNode { 191 class CookieTreeHostNode : public CookieTreeNode {
192 public: 192 public:
193 // Returns the host node's title to use for a given URL. 193 // Returns the host node's title to use for a given URL.
194 static base::string16 TitleForUrl(const GURL& url); 194 static base::string16 TitleForUrl(const GURL& url);
195 195
196 explicit CookieTreeHostNode(const GURL& url); 196 explicit CookieTreeHostNode(const GURL& url);
197 virtual ~CookieTreeHostNode(); 197 virtual ~CookieTreeHostNode();
198 198
199 // CookieTreeNode methods: 199 // CookieTreeNode methods:
200 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 200 virtual DetailedInfo GetDetailedInfo() const override;
201 201
202 // CookieTreeHostNode methods: 202 // CookieTreeHostNode methods:
203 CookieTreeCookiesNode* GetOrCreateCookiesNode(); 203 CookieTreeCookiesNode* GetOrCreateCookiesNode();
204 CookieTreeDatabasesNode* GetOrCreateDatabasesNode(); 204 CookieTreeDatabasesNode* GetOrCreateDatabasesNode();
205 CookieTreeLocalStoragesNode* GetOrCreateLocalStoragesNode(); 205 CookieTreeLocalStoragesNode* GetOrCreateLocalStoragesNode();
206 CookieTreeSessionStoragesNode* GetOrCreateSessionStoragesNode(); 206 CookieTreeSessionStoragesNode* GetOrCreateSessionStoragesNode();
207 CookieTreeAppCachesNode* GetOrCreateAppCachesNode(); 207 CookieTreeAppCachesNode* GetOrCreateAppCachesNode();
208 CookieTreeIndexedDBsNode* GetOrCreateIndexedDBsNode(); 208 CookieTreeIndexedDBsNode* GetOrCreateIndexedDBsNode();
209 CookieTreeFileSystemsNode* GetOrCreateFileSystemsNode(); 209 CookieTreeFileSystemsNode* GetOrCreateFileSystemsNode();
210 CookieTreeChannelIDsNode* GetOrCreateChannelIDsNode(); 210 CookieTreeChannelIDsNode* GetOrCreateChannelIDsNode();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 public: 256 public:
257 friend class CookieTreeCookiesNode; 257 friend class CookieTreeCookiesNode;
258 258
259 // The cookie should remain valid at least as long as the 259 // The cookie should remain valid at least as long as the
260 // CookieTreeCookieNode is valid. 260 // CookieTreeCookieNode is valid.
261 explicit CookieTreeCookieNode( 261 explicit CookieTreeCookieNode(
262 std::list<net::CanonicalCookie>::iterator cookie); 262 std::list<net::CanonicalCookie>::iterator cookie);
263 virtual ~CookieTreeCookieNode(); 263 virtual ~CookieTreeCookieNode();
264 264
265 // CookieTreeNode methods: 265 // CookieTreeNode methods:
266 virtual void DeleteStoredObjects() OVERRIDE; 266 virtual void DeleteStoredObjects() override;
267 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 267 virtual DetailedInfo GetDetailedInfo() const override;
268 268
269 private: 269 private:
270 // cookie_ is expected to remain valid as long as the CookieTreeCookieNode is 270 // cookie_ is expected to remain valid as long as the CookieTreeCookieNode is
271 // valid. 271 // valid.
272 std::list<net::CanonicalCookie>::iterator cookie_; 272 std::list<net::CanonicalCookie>::iterator cookie_;
273 273
274 DISALLOW_COPY_AND_ASSIGN(CookieTreeCookieNode); 274 DISALLOW_COPY_AND_ASSIGN(CookieTreeCookieNode);
275 }; 275 };
276 276
277 class CookieTreeCookiesNode : public CookieTreeNode { 277 class CookieTreeCookiesNode : public CookieTreeNode {
278 public: 278 public:
279 CookieTreeCookiesNode(); 279 CookieTreeCookiesNode();
280 virtual ~CookieTreeCookiesNode(); 280 virtual ~CookieTreeCookiesNode();
281 281
282 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 282 virtual DetailedInfo GetDetailedInfo() const override;
283 283
284 void AddCookieNode(CookieTreeCookieNode* child) { 284 void AddCookieNode(CookieTreeCookieNode* child) {
285 AddChildSortedByTitle(child); 285 AddChildSortedByTitle(child);
286 } 286 }
287 287
288 private: 288 private:
289 DISALLOW_COPY_AND_ASSIGN(CookieTreeCookiesNode); 289 DISALLOW_COPY_AND_ASSIGN(CookieTreeCookiesNode);
290 }; 290 };
291 291
292 // CookieTreeAppCacheNode ----------------------------------------------------- 292 // CookieTreeAppCacheNode -----------------------------------------------------
293 class CookieTreeAppCacheNode : public CookieTreeNode { 293 class CookieTreeAppCacheNode : public CookieTreeNode {
294 public: 294 public:
295 friend class CookieTreeAppCachesNode; 295 friend class CookieTreeAppCachesNode;
296 296
297 // appcache_info should remain valid at least as long as the 297 // appcache_info should remain valid at least as long as the
298 // CookieTreeAppCacheNode is valid. 298 // CookieTreeAppCacheNode is valid.
299 explicit CookieTreeAppCacheNode( 299 explicit CookieTreeAppCacheNode(
300 const GURL& origin_url, 300 const GURL& origin_url,
301 std::list<content::AppCacheInfo>::iterator appcache_info); 301 std::list<content::AppCacheInfo>::iterator appcache_info);
302 virtual ~CookieTreeAppCacheNode(); 302 virtual ~CookieTreeAppCacheNode();
303 303
304 virtual void DeleteStoredObjects() OVERRIDE; 304 virtual void DeleteStoredObjects() override;
305 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 305 virtual DetailedInfo GetDetailedInfo() const override;
306 306
307 private: 307 private:
308 GURL origin_url_; 308 GURL origin_url_;
309 std::list<content::AppCacheInfo>::iterator appcache_info_; 309 std::list<content::AppCacheInfo>::iterator appcache_info_;
310 DISALLOW_COPY_AND_ASSIGN(CookieTreeAppCacheNode); 310 DISALLOW_COPY_AND_ASSIGN(CookieTreeAppCacheNode);
311 }; 311 };
312 312
313 class CookieTreeAppCachesNode : public CookieTreeNode { 313 class CookieTreeAppCachesNode : public CookieTreeNode {
314 public: 314 public:
315 CookieTreeAppCachesNode(); 315 CookieTreeAppCachesNode();
316 virtual ~CookieTreeAppCachesNode(); 316 virtual ~CookieTreeAppCachesNode();
317 317
318 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 318 virtual DetailedInfo GetDetailedInfo() const override;
319 319
320 void AddAppCacheNode(CookieTreeAppCacheNode* child) { 320 void AddAppCacheNode(CookieTreeAppCacheNode* child) {
321 AddChildSortedByTitle(child); 321 AddChildSortedByTitle(child);
322 } 322 }
323 323
324 private: 324 private:
325 DISALLOW_COPY_AND_ASSIGN(CookieTreeAppCachesNode); 325 DISALLOW_COPY_AND_ASSIGN(CookieTreeAppCachesNode);
326 }; 326 };
327 327
328 // CookieTreeDatabaseNode ----------------------------------------------------- 328 // CookieTreeDatabaseNode -----------------------------------------------------
329 class CookieTreeDatabaseNode : public CookieTreeNode { 329 class CookieTreeDatabaseNode : public CookieTreeNode {
330 public: 330 public:
331 friend class CookieTreeDatabasesNode; 331 friend class CookieTreeDatabasesNode;
332 332
333 // database_info should remain valid at least as long as the 333 // database_info should remain valid at least as long as the
334 // CookieTreeDatabaseNode is valid. 334 // CookieTreeDatabaseNode is valid.
335 explicit CookieTreeDatabaseNode( 335 explicit CookieTreeDatabaseNode(
336 std::list<BrowsingDataDatabaseHelper::DatabaseInfo>::iterator 336 std::list<BrowsingDataDatabaseHelper::DatabaseInfo>::iterator
337 database_info); 337 database_info);
338 virtual ~CookieTreeDatabaseNode(); 338 virtual ~CookieTreeDatabaseNode();
339 339
340 virtual void DeleteStoredObjects() OVERRIDE; 340 virtual void DeleteStoredObjects() override;
341 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 341 virtual DetailedInfo GetDetailedInfo() const override;
342 342
343 private: 343 private:
344 // database_info_ is expected to remain valid as long as the 344 // database_info_ is expected to remain valid as long as the
345 // CookieTreeDatabaseNode is valid. 345 // CookieTreeDatabaseNode is valid.
346 std::list<BrowsingDataDatabaseHelper::DatabaseInfo>::iterator 346 std::list<BrowsingDataDatabaseHelper::DatabaseInfo>::iterator
347 database_info_; 347 database_info_;
348 348
349 DISALLOW_COPY_AND_ASSIGN(CookieTreeDatabaseNode); 349 DISALLOW_COPY_AND_ASSIGN(CookieTreeDatabaseNode);
350 }; 350 };
351 351
352 class CookieTreeDatabasesNode : public CookieTreeNode { 352 class CookieTreeDatabasesNode : public CookieTreeNode {
353 public: 353 public:
354 CookieTreeDatabasesNode(); 354 CookieTreeDatabasesNode();
355 virtual ~CookieTreeDatabasesNode(); 355 virtual ~CookieTreeDatabasesNode();
356 356
357 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 357 virtual DetailedInfo GetDetailedInfo() const override;
358 358
359 void AddDatabaseNode(CookieTreeDatabaseNode* child) { 359 void AddDatabaseNode(CookieTreeDatabaseNode* child) {
360 AddChildSortedByTitle(child); 360 AddChildSortedByTitle(child);
361 } 361 }
362 362
363 private: 363 private:
364 DISALLOW_COPY_AND_ASSIGN(CookieTreeDatabasesNode); 364 DISALLOW_COPY_AND_ASSIGN(CookieTreeDatabasesNode);
365 }; 365 };
366 366
367 // CookieTreeFileSystemNode -------------------------------------------------- 367 // CookieTreeFileSystemNode --------------------------------------------------
368 class CookieTreeFileSystemNode : public CookieTreeNode { 368 class CookieTreeFileSystemNode : public CookieTreeNode {
369 public: 369 public:
370 friend class CookieTreeFileSystemsNode; 370 friend class CookieTreeFileSystemsNode;
371 371
372 // file_system_info should remain valid at least as long as the 372 // file_system_info should remain valid at least as long as the
373 // CookieTreeFileSystemNode is valid. 373 // CookieTreeFileSystemNode is valid.
374 explicit CookieTreeFileSystemNode( 374 explicit CookieTreeFileSystemNode(
375 std::list<BrowsingDataFileSystemHelper::FileSystemInfo>::iterator 375 std::list<BrowsingDataFileSystemHelper::FileSystemInfo>::iterator
376 file_system_info); 376 file_system_info);
377 virtual ~CookieTreeFileSystemNode(); 377 virtual ~CookieTreeFileSystemNode();
378 378
379 virtual void DeleteStoredObjects() OVERRIDE; 379 virtual void DeleteStoredObjects() override;
380 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 380 virtual DetailedInfo GetDetailedInfo() const override;
381 381
382 private: 382 private:
383 // file_system_info_ expected to remain valid as long as the 383 // file_system_info_ expected to remain valid as long as the
384 // CookieTreeFileSystemNode is valid. 384 // CookieTreeFileSystemNode is valid.
385 std::list<BrowsingDataFileSystemHelper::FileSystemInfo>::iterator 385 std::list<BrowsingDataFileSystemHelper::FileSystemInfo>::iterator
386 file_system_info_; 386 file_system_info_;
387 387
388 DISALLOW_COPY_AND_ASSIGN(CookieTreeFileSystemNode); 388 DISALLOW_COPY_AND_ASSIGN(CookieTreeFileSystemNode);
389 }; 389 };
390 390
391 class CookieTreeFileSystemsNode : public CookieTreeNode { 391 class CookieTreeFileSystemsNode : public CookieTreeNode {
392 public: 392 public:
393 CookieTreeFileSystemsNode(); 393 CookieTreeFileSystemsNode();
394 virtual ~CookieTreeFileSystemsNode(); 394 virtual ~CookieTreeFileSystemsNode();
395 395
396 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 396 virtual DetailedInfo GetDetailedInfo() const override;
397 397
398 void AddFileSystemNode(CookieTreeFileSystemNode* child) { 398 void AddFileSystemNode(CookieTreeFileSystemNode* child) {
399 AddChildSortedByTitle(child); 399 AddChildSortedByTitle(child);
400 } 400 }
401 401
402 private: 402 private:
403 DISALLOW_COPY_AND_ASSIGN(CookieTreeFileSystemsNode); 403 DISALLOW_COPY_AND_ASSIGN(CookieTreeFileSystemsNode);
404 }; 404 };
405 405
406 // CookieTreeLocalStorageNode ------------------------------------------------- 406 // CookieTreeLocalStorageNode -------------------------------------------------
407 class CookieTreeLocalStorageNode : public CookieTreeNode { 407 class CookieTreeLocalStorageNode : public CookieTreeNode {
408 public: 408 public:
409 // local_storage_info should remain valid at least as long as the 409 // local_storage_info should remain valid at least as long as the
410 // CookieTreeLocalStorageNode is valid. 410 // CookieTreeLocalStorageNode is valid.
411 explicit CookieTreeLocalStorageNode( 411 explicit CookieTreeLocalStorageNode(
412 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator 412 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator
413 local_storage_info); 413 local_storage_info);
414 virtual ~CookieTreeLocalStorageNode(); 414 virtual ~CookieTreeLocalStorageNode();
415 415
416 // CookieTreeNode methods: 416 // CookieTreeNode methods:
417 virtual void DeleteStoredObjects() OVERRIDE; 417 virtual void DeleteStoredObjects() override;
418 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 418 virtual DetailedInfo GetDetailedInfo() const override;
419 419
420 private: 420 private:
421 // local_storage_info_ is expected to remain valid as long as the 421 // local_storage_info_ is expected to remain valid as long as the
422 // CookieTreeLocalStorageNode is valid. 422 // CookieTreeLocalStorageNode is valid.
423 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator 423 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator
424 local_storage_info_; 424 local_storage_info_;
425 425
426 DISALLOW_COPY_AND_ASSIGN(CookieTreeLocalStorageNode); 426 DISALLOW_COPY_AND_ASSIGN(CookieTreeLocalStorageNode);
427 }; 427 };
428 428
429 class CookieTreeLocalStoragesNode : public CookieTreeNode { 429 class CookieTreeLocalStoragesNode : public CookieTreeNode {
430 public: 430 public:
431 CookieTreeLocalStoragesNode(); 431 CookieTreeLocalStoragesNode();
432 virtual ~CookieTreeLocalStoragesNode(); 432 virtual ~CookieTreeLocalStoragesNode();
433 433
434 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 434 virtual DetailedInfo GetDetailedInfo() const override;
435 435
436 void AddLocalStorageNode(CookieTreeLocalStorageNode* child) { 436 void AddLocalStorageNode(CookieTreeLocalStorageNode* child) {
437 AddChildSortedByTitle(child); 437 AddChildSortedByTitle(child);
438 } 438 }
439 439
440 private: 440 private:
441 DISALLOW_COPY_AND_ASSIGN(CookieTreeLocalStoragesNode); 441 DISALLOW_COPY_AND_ASSIGN(CookieTreeLocalStoragesNode);
442 }; 442 };
443 443
444 444
445 // CookieTreeSessionStorageNode ----------------------------------------------- 445 // CookieTreeSessionStorageNode -----------------------------------------------
446 class CookieTreeSessionStorageNode : public CookieTreeNode { 446 class CookieTreeSessionStorageNode : public CookieTreeNode {
447 public: 447 public:
448 // session_storage_info should remain valid at least as long as the 448 // session_storage_info should remain valid at least as long as the
449 // CookieTreeSessionStorageNode is valid. 449 // CookieTreeSessionStorageNode is valid.
450 explicit CookieTreeSessionStorageNode( 450 explicit CookieTreeSessionStorageNode(
451 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator 451 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator
452 session_storage_info); 452 session_storage_info);
453 virtual ~CookieTreeSessionStorageNode(); 453 virtual ~CookieTreeSessionStorageNode();
454 454
455 // CookieTreeNode methods: 455 // CookieTreeNode methods:
456 virtual void DeleteStoredObjects() OVERRIDE; 456 virtual void DeleteStoredObjects() override;
457 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 457 virtual DetailedInfo GetDetailedInfo() const override;
458 458
459 private: 459 private:
460 // session_storage_info_ is expected to remain valid as long as the 460 // session_storage_info_ is expected to remain valid as long as the
461 // CookieTreeSessionStorageNode is valid. 461 // CookieTreeSessionStorageNode is valid.
462 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator 462 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator
463 session_storage_info_; 463 session_storage_info_;
464 464
465 DISALLOW_COPY_AND_ASSIGN(CookieTreeSessionStorageNode); 465 DISALLOW_COPY_AND_ASSIGN(CookieTreeSessionStorageNode);
466 }; 466 };
467 467
468 class CookieTreeSessionStoragesNode : public CookieTreeNode { 468 class CookieTreeSessionStoragesNode : public CookieTreeNode {
469 public: 469 public:
470 CookieTreeSessionStoragesNode(); 470 CookieTreeSessionStoragesNode();
471 virtual ~CookieTreeSessionStoragesNode(); 471 virtual ~CookieTreeSessionStoragesNode();
472 472
473 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 473 virtual DetailedInfo GetDetailedInfo() const override;
474 474
475 void AddSessionStorageNode(CookieTreeSessionStorageNode* child) { 475 void AddSessionStorageNode(CookieTreeSessionStorageNode* child) {
476 AddChildSortedByTitle(child); 476 AddChildSortedByTitle(child);
477 } 477 }
478 478
479 private: 479 private:
480 DISALLOW_COPY_AND_ASSIGN(CookieTreeSessionStoragesNode); 480 DISALLOW_COPY_AND_ASSIGN(CookieTreeSessionStoragesNode);
481 }; 481 };
482 482
483 // CookieTreeIndexedDBNode ----------------------------------------------- 483 // CookieTreeIndexedDBNode -----------------------------------------------
484 class CookieTreeIndexedDBNode : public CookieTreeNode { 484 class CookieTreeIndexedDBNode : public CookieTreeNode {
485 public: 485 public:
486 // indexed_db_info should remain valid at least as long as the 486 // indexed_db_info should remain valid at least as long as the
487 // CookieTreeIndexedDBNode is valid. 487 // CookieTreeIndexedDBNode is valid.
488 explicit CookieTreeIndexedDBNode( 488 explicit CookieTreeIndexedDBNode(
489 std::list<content::IndexedDBInfo>::iterator 489 std::list<content::IndexedDBInfo>::iterator
490 indexed_db_info); 490 indexed_db_info);
491 virtual ~CookieTreeIndexedDBNode(); 491 virtual ~CookieTreeIndexedDBNode();
492 492
493 // CookieTreeNode methods: 493 // CookieTreeNode methods:
494 virtual void DeleteStoredObjects() OVERRIDE; 494 virtual void DeleteStoredObjects() override;
495 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 495 virtual DetailedInfo GetDetailedInfo() const override;
496 496
497 private: 497 private:
498 // indexed_db_info_ is expected to remain valid as long as the 498 // indexed_db_info_ is expected to remain valid as long as the
499 // CookieTreeIndexedDBNode is valid. 499 // CookieTreeIndexedDBNode is valid.
500 std::list<content::IndexedDBInfo>::iterator 500 std::list<content::IndexedDBInfo>::iterator
501 indexed_db_info_; 501 indexed_db_info_;
502 502
503 DISALLOW_COPY_AND_ASSIGN(CookieTreeIndexedDBNode); 503 DISALLOW_COPY_AND_ASSIGN(CookieTreeIndexedDBNode);
504 }; 504 };
505 505
506 class CookieTreeIndexedDBsNode : public CookieTreeNode { 506 class CookieTreeIndexedDBsNode : public CookieTreeNode {
507 public: 507 public:
508 CookieTreeIndexedDBsNode(); 508 CookieTreeIndexedDBsNode();
509 virtual ~CookieTreeIndexedDBsNode(); 509 virtual ~CookieTreeIndexedDBsNode();
510 510
511 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 511 virtual DetailedInfo GetDetailedInfo() const override;
512 512
513 void AddIndexedDBNode(CookieTreeIndexedDBNode* child) { 513 void AddIndexedDBNode(CookieTreeIndexedDBNode* child) {
514 AddChildSortedByTitle(child); 514 AddChildSortedByTitle(child);
515 } 515 }
516 516
517 private: 517 private:
518 DISALLOW_COPY_AND_ASSIGN(CookieTreeIndexedDBsNode); 518 DISALLOW_COPY_AND_ASSIGN(CookieTreeIndexedDBsNode);
519 }; 519 };
520 520
521 // CookieTreeQuotaNode -------------------------------------------------- 521 // CookieTreeQuotaNode --------------------------------------------------
522 class CookieTreeQuotaNode : public CookieTreeNode { 522 class CookieTreeQuotaNode : public CookieTreeNode {
523 public: 523 public:
524 // quota_info should remain valid at least as long as the CookieTreeQuotaNode 524 // quota_info should remain valid at least as long as the CookieTreeQuotaNode
525 // is valid. 525 // is valid.
526 explicit CookieTreeQuotaNode( 526 explicit CookieTreeQuotaNode(
527 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info); 527 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info);
528 virtual ~CookieTreeQuotaNode(); 528 virtual ~CookieTreeQuotaNode();
529 529
530 virtual void DeleteStoredObjects() OVERRIDE; 530 virtual void DeleteStoredObjects() override;
531 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 531 virtual DetailedInfo GetDetailedInfo() const override;
532 532
533 private: 533 private:
534 // quota_info_ is expected to remain valid as long as the CookieTreeQuotaNode 534 // quota_info_ is expected to remain valid as long as the CookieTreeQuotaNode
535 // is valid. 535 // is valid.
536 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info_; 536 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info_;
537 537
538 DISALLOW_COPY_AND_ASSIGN(CookieTreeQuotaNode); 538 DISALLOW_COPY_AND_ASSIGN(CookieTreeQuotaNode);
539 }; 539 };
540 540
541 // CookieTreeChannelIDNode --------------------------------------------- 541 // CookieTreeChannelIDNode ---------------------------------------------
542 class CookieTreeChannelIDNode : public CookieTreeNode { 542 class CookieTreeChannelIDNode : public CookieTreeNode {
543 public: 543 public:
544 friend class CookieTreeChannelIDsNode; 544 friend class CookieTreeChannelIDsNode;
545 545
546 // The iterator should remain valid at least as long as the 546 // The iterator should remain valid at least as long as the
547 // CookieTreeChannelIDNode is valid. 547 // CookieTreeChannelIDNode is valid.
548 explicit CookieTreeChannelIDNode( 548 explicit CookieTreeChannelIDNode(
549 net::ChannelIDStore::ChannelIDList::iterator cert); 549 net::ChannelIDStore::ChannelIDList::iterator cert);
550 virtual ~CookieTreeChannelIDNode(); 550 virtual ~CookieTreeChannelIDNode();
551 551
552 // CookieTreeNode methods: 552 // CookieTreeNode methods:
553 virtual void DeleteStoredObjects() OVERRIDE; 553 virtual void DeleteStoredObjects() override;
554 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 554 virtual DetailedInfo GetDetailedInfo() const override;
555 555
556 private: 556 private:
557 // channel_id_ is expected to remain valid as long as the 557 // channel_id_ is expected to remain valid as long as the
558 // CookieTreeChannelIDNode is valid. 558 // CookieTreeChannelIDNode is valid.
559 net::ChannelIDStore::ChannelIDList::iterator channel_id_; 559 net::ChannelIDStore::ChannelIDList::iterator channel_id_;
560 560
561 DISALLOW_COPY_AND_ASSIGN(CookieTreeChannelIDNode); 561 DISALLOW_COPY_AND_ASSIGN(CookieTreeChannelIDNode);
562 }; 562 };
563 563
564 class CookieTreeChannelIDsNode : public CookieTreeNode { 564 class CookieTreeChannelIDsNode : public CookieTreeNode {
565 public: 565 public:
566 CookieTreeChannelIDsNode(); 566 CookieTreeChannelIDsNode();
567 virtual ~CookieTreeChannelIDsNode(); 567 virtual ~CookieTreeChannelIDsNode();
568 568
569 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 569 virtual DetailedInfo GetDetailedInfo() const override;
570 570
571 void AddChannelIDNode(CookieTreeChannelIDNode* child) { 571 void AddChannelIDNode(CookieTreeChannelIDNode* child) {
572 AddChildSortedByTitle(child); 572 AddChildSortedByTitle(child);
573 } 573 }
574 574
575 private: 575 private:
576 DISALLOW_COPY_AND_ASSIGN(CookieTreeChannelIDsNode); 576 DISALLOW_COPY_AND_ASSIGN(CookieTreeChannelIDsNode);
577 }; 577 };
578 578
579 // CookieTreeServiceWorkerNode ----------------------------------------------- 579 // CookieTreeServiceWorkerNode -----------------------------------------------
580 class CookieTreeServiceWorkerNode : public CookieTreeNode { 580 class CookieTreeServiceWorkerNode : public CookieTreeNode {
581 public: 581 public:
582 // service_worker_info should remain valid at least as long as the 582 // service_worker_info should remain valid at least as long as the
583 // CookieTreeServiceWorkerNode is valid. 583 // CookieTreeServiceWorkerNode is valid.
584 explicit CookieTreeServiceWorkerNode( 584 explicit CookieTreeServiceWorkerNode(
585 std::list<content::ServiceWorkerUsageInfo>::iterator service_worker_info); 585 std::list<content::ServiceWorkerUsageInfo>::iterator service_worker_info);
586 virtual ~CookieTreeServiceWorkerNode(); 586 virtual ~CookieTreeServiceWorkerNode();
587 587
588 // CookieTreeNode methods: 588 // CookieTreeNode methods:
589 virtual void DeleteStoredObjects() OVERRIDE; 589 virtual void DeleteStoredObjects() override;
590 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 590 virtual DetailedInfo GetDetailedInfo() const override;
591 591
592 private: 592 private:
593 // service_worker_info_ is expected to remain valid as long as the 593 // service_worker_info_ is expected to remain valid as long as the
594 // CookieTreeServiceWorkerNode is valid. 594 // CookieTreeServiceWorkerNode is valid.
595 std::list<content::ServiceWorkerUsageInfo>::iterator service_worker_info_; 595 std::list<content::ServiceWorkerUsageInfo>::iterator service_worker_info_;
596 596
597 DISALLOW_COPY_AND_ASSIGN(CookieTreeServiceWorkerNode); 597 DISALLOW_COPY_AND_ASSIGN(CookieTreeServiceWorkerNode);
598 }; 598 };
599 599
600 class CookieTreeServiceWorkersNode : public CookieTreeNode { 600 class CookieTreeServiceWorkersNode : public CookieTreeNode {
601 public: 601 public:
602 CookieTreeServiceWorkersNode(); 602 CookieTreeServiceWorkersNode();
603 virtual ~CookieTreeServiceWorkersNode(); 603 virtual ~CookieTreeServiceWorkersNode();
604 604
605 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 605 virtual DetailedInfo GetDetailedInfo() const override;
606 606
607 void AddServiceWorkerNode(CookieTreeServiceWorkerNode* child) { 607 void AddServiceWorkerNode(CookieTreeServiceWorkerNode* child) {
608 AddChildSortedByTitle(child); 608 AddChildSortedByTitle(child);
609 } 609 }
610 610
611 private: 611 private:
612 DISALLOW_COPY_AND_ASSIGN(CookieTreeServiceWorkersNode); 612 DISALLOW_COPY_AND_ASSIGN(CookieTreeServiceWorkersNode);
613 }; 613 };
614 614
615 // CookieTreeFlashLSONode ---------------------------------------------------- 615 // CookieTreeFlashLSONode ----------------------------------------------------
616 class CookieTreeFlashLSONode : public CookieTreeNode { 616 class CookieTreeFlashLSONode : public CookieTreeNode {
617 public: 617 public:
618 explicit CookieTreeFlashLSONode(const std::string& domain); 618 explicit CookieTreeFlashLSONode(const std::string& domain);
619 virtual ~CookieTreeFlashLSONode(); 619 virtual ~CookieTreeFlashLSONode();
620 620
621 // CookieTreeNode methods: 621 // CookieTreeNode methods:
622 virtual void DeleteStoredObjects() OVERRIDE; 622 virtual void DeleteStoredObjects() override;
623 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 623 virtual DetailedInfo GetDetailedInfo() const override;
624 624
625 private: 625 private:
626 std::string domain_; 626 std::string domain_;
627 627
628 DISALLOW_COPY_AND_ASSIGN(CookieTreeFlashLSONode); 628 DISALLOW_COPY_AND_ASSIGN(CookieTreeFlashLSONode);
629 }; 629 };
630 630
631 // CookiesTreeModel ----------------------------------------------------------- 631 // CookiesTreeModel -----------------------------------------------------------
632 class CookiesTreeModel : public ui::TreeNodeModel<CookieTreeNode> { 632 class CookiesTreeModel : public ui::TreeNodeModel<CookieTreeNode> {
633 public: 633 public:
(...skipping 26 matching lines...) Expand all
660 660
661 private: 661 private:
662 CookiesTreeModel* model_; 662 CookiesTreeModel* model_;
663 CookieTreeNode* node_; 663 CookieTreeNode* node_;
664 bool batch_in_progress_; 664 bool batch_in_progress_;
665 }; 665 };
666 666
667 // ui::TreeModel methods: 667 // ui::TreeModel methods:
668 // Returns the set of icons for the nodes in the tree. You only need override 668 // Returns the set of icons for the nodes in the tree. You only need override
669 // this if you don't want to use the default folder icons. 669 // this if you don't want to use the default folder icons.
670 virtual void GetIcons(std::vector<gfx::ImageSkia>* icons) OVERRIDE; 670 virtual void GetIcons(std::vector<gfx::ImageSkia>* icons) override;
671 671
672 // Returns the index of the icon to use for |node|. Return -1 to use the 672 // Returns the index of the icon to use for |node|. Return -1 to use the
673 // default icon. The index is relative to the list of icons returned from 673 // default icon. The index is relative to the list of icons returned from
674 // GetIcons. 674 // GetIcons.
675 virtual int GetIconIndex(ui::TreeModelNode* node) OVERRIDE; 675 virtual int GetIconIndex(ui::TreeModelNode* node) override;
676 676
677 // CookiesTreeModel methods: 677 // CookiesTreeModel methods:
678 void DeleteAllStoredObjects(); 678 void DeleteAllStoredObjects();
679 679
680 // Deletes a specific node in the tree, identified by |cookie_node|, and its 680 // Deletes a specific node in the tree, identified by |cookie_node|, and its
681 // subtree. 681 // subtree.
682 void DeleteCookieNode(CookieTreeNode* cookie_node); 682 void DeleteCookieNode(CookieTreeNode* cookie_node);
683 683
684 // Filter the origins to only display matched results. 684 // Filter the origins to only display matched results.
685 void UpdateSearchResults(const base::string16& filter); 685 void UpdateSearchResults(const base::string16& filter);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // Otherwise, use the CanonicalCookie::Domain attribute. 782 // Otherwise, use the CanonicalCookie::Domain attribute.
783 bool group_by_cookie_source_; 783 bool group_by_cookie_source_;
784 784
785 // If this is non-zero, then this model is batching updates (there's a lot of 785 // If this is non-zero, then this model is batching updates (there's a lot of
786 // notifications coming down the pipe). This is an integer is used to balance 786 // notifications coming down the pipe). This is an integer is used to balance
787 // calls to Begin/EndBatch() if they're called in a nested manner. 787 // calls to Begin/EndBatch() if they're called in a nested manner.
788 int batch_update_; 788 int batch_update_;
789 }; 789 };
790 790
791 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 791 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698