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

Side by Side Diff: chrome/browser/sync/js/js_sync_manager_observer.h

Issue 8366030: Introduce the plumbing necessary to report Unrecoverable error from model safe workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For a high level review. Created 9 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 | Annotate | Revision Log
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_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ 6 #define CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const std::string& bootstrap_token) OVERRIDE; 42 const std::string& bootstrap_token) OVERRIDE;
43 virtual void OnEncryptionComplete( 43 virtual void OnEncryptionComplete(
44 const syncable::ModelTypeSet& encrypted_types) OVERRIDE; 44 const syncable::ModelTypeSet& encrypted_types) OVERRIDE;
45 virtual void OnInitializationComplete( 45 virtual void OnInitializationComplete(
46 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; 46 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE;
47 virtual void OnStopSyncingPermanently() OVERRIDE; 47 virtual void OnStopSyncingPermanently() OVERRIDE;
48 virtual void OnClearServerDataSucceeded() OVERRIDE; 48 virtual void OnClearServerDataSucceeded() OVERRIDE;
49 virtual void OnClearServerDataFailed() OVERRIDE; 49 virtual void OnClearServerDataFailed() OVERRIDE;
50 virtual void OnActionableError( 50 virtual void OnActionableError(
51 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE; 51 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE;
52 virtual void OnUnrecoverableError(const tracked_objects::Location& location,
53 const std::string& message) OVERRIDE;
52 54
53 private: 55 private:
54 void HandleJsEvent(const tracked_objects::Location& from_here, 56 void HandleJsEvent(const tracked_objects::Location& from_here,
55 const std::string& name, const JsEventDetails& details); 57 const std::string& name, const JsEventDetails& details);
56 58
57 WeakHandle<JsEventHandler> event_handler_; 59 WeakHandle<JsEventHandler> event_handler_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 61 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
60 }; 62 };
61 63
62 } // namespace browser_sync 64 } // namespace browser_sync
63 65
64 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ 66 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698