| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 | 10 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 // DEPRECATED: Use ExtensionRegistry::AddObserver instead. | 408 // DEPRECATED: Use ExtensionRegistry::AddObserver instead. |
| 409 // | 409 // |
| 410 // Sent when a new extension is loaded. The details are an Extension, and | 410 // Sent when a new extension is loaded. The details are an Extension, and |
| 411 // the source is a Profile. | 411 // the source is a Profile. |
| 412 NOTIFICATION_EXTENSION_LOADED_DEPRECATED, | 412 NOTIFICATION_EXTENSION_LOADED_DEPRECATED, |
| 413 | 413 |
| 414 // An error occured while attempting to load an extension. The details are a | 414 // An error occured while attempting to load an extension. The details are a |
| 415 // string with details about why the load failed. | 415 // string with details about why the load failed. |
| 416 NOTIFICATION_EXTENSION_LOAD_ERROR, | 416 NOTIFICATION_EXTENSION_LOAD_ERROR, |
| 417 | 417 |
| 418 // Sent when an unpacked extension fails to load. The details are a std::pair, | |
| 419 // the first object is a boolean signifying the user's retry response value, | |
| 420 // and the second object is a const base::FilePath& of the extension that | |
| 421 // failed to load. Source is a Profile. | |
| 422 NOTIFICATION_EXTENSION_LOAD_RETRY, | |
| 423 | |
| 424 // Sent when an extension is enabled. Under most circumstances, listeners | 418 // Sent when an extension is enabled. Under most circumstances, listeners |
| 425 // will want to use NOTIFICATION_EXTENSION_LOADED_DEPRECATED. This | 419 // will want to use NOTIFICATION_EXTENSION_LOADED_DEPRECATED. This |
| 426 // notification is only | 420 // notification is only |
| 427 // fired when the "Enable" button is hit in the extensions tab. The details | 421 // fired when the "Enable" button is hit in the extensions tab. The details |
| 428 // are an Extension, and the source is a Profile. | 422 // are an Extension, and the source is a Profile. |
| 429 NOTIFICATION_EXTENSION_ENABLED, | 423 NOTIFICATION_EXTENSION_ENABLED, |
| 430 | 424 |
| 431 // Sent when attempting to load a new extension, but they are disabled. The | 425 // Sent when attempting to load a new extension, but they are disabled. The |
| 432 // details are an Extension*, and the source is a Profile*. | 426 // details are an Extension*, and the source is a Profile*. |
| 433 NOTIFICATION_EXTENSION_UPDATE_DISABLED, | 427 NOTIFICATION_EXTENSION_UPDATE_DISABLED, |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 // Note:- | 940 // Note:- |
| 947 // Currently only Content and Chrome define and use notifications. | 941 // Currently only Content and Chrome define and use notifications. |
| 948 // Custom notifications not belonging to Content and Chrome should start | 942 // Custom notifications not belonging to Content and Chrome should start |
| 949 // from here. | 943 // from here. |
| 950 NOTIFICATION_CHROME_END, | 944 NOTIFICATION_CHROME_END, |
| 951 }; | 945 }; |
| 952 | 946 |
| 953 } // namespace chrome | 947 } // namespace chrome |
| 954 | 948 |
| 955 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 949 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |