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

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

Issue 7861013: Fix the false-positive detection of commit errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another attempt at detecting errors 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 30 matching lines...) Expand all
41 virtual void OnPassphraseAccepted( 41 virtual void OnPassphraseAccepted(
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::SyncOperationResult& sync_protocol_error) OVERRIDE;
52 52
53 private: 53 private:
54 void HandleJsEvent(const tracked_objects::Location& from_here, 54 void HandleJsEvent(const tracked_objects::Location& from_here,
55 const std::string& name, const JsEventDetails& details); 55 const std::string& name, const JsEventDetails& details);
56 56
57 WeakHandle<JsEventHandler> event_handler_; 57 WeakHandle<JsEventHandler> event_handler_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 59 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
60 }; 60 };
61 61
62 } // namespace browser_sync 62 } // namespace browser_sync
63 63
64 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ 64 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/syncapi_unittest.cc ('k') | chrome/browser/sync/js/js_sync_manager_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698