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

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

Issue 6677030: Fixes crash if instant is enabled and you block JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds test Created 9 years, 9 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/renderer/searchbox_extension.cc ('k') | no next file » | 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 CONTENT_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ 6 #define CONTENT_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 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 // Details<bool> contain the closeable flag while source is AllSources. 1286 // Details<bool> contain the closeable flag while source is AllSources.
1287 // This is only sent from ChromeOS's TabCloseableStateWatcher. 1287 // This is only sent from ChromeOS's TabCloseableStateWatcher.
1288 TAB_CLOSEABLE_STATE_CHANGED, 1288 TAB_CLOSEABLE_STATE_CHANGED,
1289 1289
1290 // Sent each time the InstantController is updated. 1290 // Sent each time the InstantController is updated.
1291 INSTANT_CONTROLLER_UPDATED, 1291 INSTANT_CONTROLLER_UPDATED,
1292 1292
1293 // Sent each time the InstantController shows the InstantLoader. 1293 // Sent each time the InstantController shows the InstantLoader.
1294 INSTANT_CONTROLLER_SHOWN, 1294 INSTANT_CONTROLLER_SHOWN,
1295 1295
1296 // Sent when the instant loader determines whether the page supports the
1297 // instant API or not. The details is a boolean indicating if the page
1298 // supports instant. The source is not used.
1299 INSTANT_SUPPORT_DETERMINED,
1300
1296 // Password Store ---------------------------------------------------------- 1301 // Password Store ----------------------------------------------------------
1297 // This notification is sent whenenever login entries stored in the password 1302 // This notification is sent whenenever login entries stored in the password
1298 // store are changed. The detail of this notification is a list of changes 1303 // store are changed. The detail of this notification is a list of changes
1299 // represented by a vector of PasswordStoreChange. Each change includes a 1304 // represented by a vector of PasswordStoreChange. Each change includes a
1300 // change type (ADD, UPDATE, or REMOVE) as well as the 1305 // change type (ADD, UPDATE, or REMOVE) as well as the
1301 // |webkit_glue::PasswordForm|s that were affected. 1306 // |webkit_glue::PasswordForm|s that were affected.
1302 LOGINS_CHANGED, 1307 LOGINS_CHANGED,
1303 1308
1304 // Sent when the applications in the NTP app launcher have been reordered. 1309 // Sent when the applications in the NTP app launcher have been reordered.
1305 EXTENSION_LAUNCHER_REORDERED, 1310 EXTENSION_LAUNCHER_REORDERED,
(...skipping 18 matching lines...) Expand all
1324 }; 1329 };
1325 1330
1326 inline bool operator==(NotificationType::Type a, NotificationType b) { 1331 inline bool operator==(NotificationType::Type a, NotificationType b) {
1327 return a == b.value; 1332 return a == b.value;
1328 } 1333 }
1329 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1334 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1330 return a != b.value; 1335 return a != b.value;
1331 } 1336 }
1332 1337
1333 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ 1338 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox_extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698