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

Side by Side Diff: chrome/common/notification_type.h

Issue 6542003: Refactor WebResourceService class, making it more generic. Move all the prom... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: For the records Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_
7 #pragma once 7 #pragma once
8 8
9 // This file describes various types used to describe and filter notifications 9 // This file describes various types used to describe and filter notifications
10 // that pass through the NotificationService. 10 // that pass through the NotificationService.
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 773
774 // Sent when a default request context has been created, so calling 774 // Sent when a default request context has been created, so calling
775 // Profile::GetDefaultRequestContext() will not return NULL. This is sent 775 // Profile::GetDefaultRequestContext() will not return NULL. This is sent
776 // on the thread where Profile::GetRequestContext() is first called, which 776 // on the thread where Profile::GetRequestContext() is first called, which
777 // should be the UI thread. 777 // should be the UI thread.
778 DEFAULT_REQUEST_CONTEXT_AVAILABLE, 778 DEFAULT_REQUEST_CONTEXT_AVAILABLE,
779 779
780 // The state of a web resource has been changed. A resource may have been 780 // The state of a web resource has been changed. A resource may have been
781 // added, removed, or altered. Source is WebResourceService, and the 781 // added, removed, or altered. Source is WebResourceService, and the
782 // details are NoDetails. 782 // details are NoDetails.
783 WEB_RESOURCE_STATE_CHANGED, 783 PROMO_RESOURCE_STATE_CHANGED,
784 784
785 // Autocomplete ------------------------------------------------------------ 785 // Autocomplete ------------------------------------------------------------
786 786
787 // Sent by the autocomplete controller at least once per query, each time 787 // Sent by the autocomplete controller at least once per query, each time
788 // new matches are available, subject to rate-limiting/coalescing to reduce 788 // new matches are available, subject to rate-limiting/coalescing to reduce
789 // the number of updates. The details hold the AutocompleteResult that 789 // the number of updates. The details hold the AutocompleteResult that
790 // observers should use if they want to see the updated matches. 790 // observers should use if they want to see the updated matches.
791 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, 791 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED,
792 792
793 // Sent by the autocomplete controller immediately after synchronous matches 793 // Sent by the autocomplete controller immediately after synchronous matches
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 }; 1336 };
1337 1337
1338 inline bool operator==(NotificationType::Type a, NotificationType b) { 1338 inline bool operator==(NotificationType::Type a, NotificationType b) {
1339 return a == b.value; 1339 return a == b.value;
1340 } 1340 }
1341 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1341 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1342 return a != b.value; 1342 return a != b.value;
1343 } 1343 }
1344 1344
1345 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1345 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698