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

Side by Side Diff: load.cc

Issue 6648007: Libcros changes for issue_12743: Add async RequestUpdateCheck call. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cros.git@master
Patch Set: Used scoped_ptr in callback data. 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
« chromeos_update_engine.cc ('K') | « chromeos_update_engine.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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 #include <cstdio> 5 #include <cstdio>
6 #include <dlfcn.h> 6 #include <dlfcn.h>
7 #include <string.h> 7 #include <string.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 // Update library 362 // Update library
363 DECL_FUNC_1(Update, bool, UpdateInformation*); 363 DECL_FUNC_1(Update, bool, UpdateInformation*);
364 DECL_FUNC_1(CheckForUpdate, bool, UpdateInformation*); 364 DECL_FUNC_1(CheckForUpdate, bool, UpdateInformation*);
365 365
366 // Update Engine (replacing Update library) 366 // Update Engine (replacing Update library)
367 DECL_FUNC_2(MonitorUpdateStatus, UpdateStatusConnection, UpdateMonitor, void*); 367 DECL_FUNC_2(MonitorUpdateStatus, UpdateStatusConnection, UpdateMonitor, void*);
368 DECL_FUNC_1(DisconnectUpdateProgress, void, UpdateStatusConnection); 368 DECL_FUNC_1(DisconnectUpdateProgress, void, UpdateStatusConnection);
369 DECL_FUNC_1(RetrieveUpdateProgress, bool, UpdateProgress*); 369 DECL_FUNC_1(RetrieveUpdateProgress, bool, UpdateProgress*);
370 DECL_FUNC_0(InitiateUpdateCheck, bool); 370 DECL_FUNC_0(InitiateUpdateCheck, bool);
371 DECL_FUNC_2(RequestUpdateCheck, void, UpdateCallback, void*);
371 DECL_FUNC_0(RebootIfUpdated, bool); 372 DECL_FUNC_0(RebootIfUpdated, bool);
372 DECL_FUNC_1(SetTrack, bool, const std::string&); 373 DECL_FUNC_1(SetTrack, bool, const std::string&);
373 DECL_FUNC_0(GetTrack, std::string); 374 DECL_FUNC_0(GetTrack, std::string);
374 375
375 DECL_FUNC_1(Speak, bool, const char*); 376 DECL_FUNC_1(Speak, bool, const char*);
376 DECL_FUNC_1(SetSpeakProperties, bool, const char*); 377 DECL_FUNC_1(SetSpeakProperties, bool, const char*);
377 DECL_FUNC_0(StopSpeaking, bool); 378 DECL_FUNC_0(StopSpeaking, bool);
378 DECL_FUNC_0(IsSpeaking, bool); 379 DECL_FUNC_0(IsSpeaking, bool);
379 DECL_FUNC_1(InitTts, void, InitStatusCallback); 380 DECL_FUNC_1(InitTts, void, InitStatusCallback);
380 381
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 641
641 // Update 642 // Update
642 INIT_FUNC(Update); 643 INIT_FUNC(Update);
643 INIT_FUNC(CheckForUpdate); 644 INIT_FUNC(CheckForUpdate);
644 645
645 // Update Engine 646 // Update Engine
646 INIT_FUNC(MonitorUpdateStatus); 647 INIT_FUNC(MonitorUpdateStatus);
647 INIT_FUNC(DisconnectUpdateProgress); 648 INIT_FUNC(DisconnectUpdateProgress);
648 INIT_FUNC(RetrieveUpdateProgress); 649 INIT_FUNC(RetrieveUpdateProgress);
649 INIT_FUNC(InitiateUpdateCheck); 650 INIT_FUNC(InitiateUpdateCheck);
651 INIT_FUNC(RequestUpdateCheck);
650 INIT_FUNC(RebootIfUpdated); 652 INIT_FUNC(RebootIfUpdated);
651 INIT_FUNC(SetTrack); 653 INIT_FUNC(SetTrack);
652 INIT_FUNC(GetTrack); 654 INIT_FUNC(GetTrack);
653 655
654 // Speech Synthesis 656 // Speech Synthesis
655 INIT_FUNC(Speak); 657 INIT_FUNC(Speak);
656 INIT_FUNC(SetSpeakProperties); 658 INIT_FUNC(SetSpeakProperties);
657 INIT_FUNC(StopSpeaking); 659 INIT_FUNC(StopSpeaking);
658 INIT_FUNC(IsSpeaking); 660 INIT_FUNC(IsSpeaking);
659 INIT_FUNC(InitTts); 661 INIT_FUNC(InitTts);
(...skipping 18 matching lines...) Expand all
678 INIT_FUNC(NotifyNetworkProxyResolved); 680 INIT_FUNC(NotifyNetworkProxyResolved);
679 681
680 return error_string.empty(); 682 return error_string.empty();
681 } 683 }
682 684
683 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) { 685 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) {
684 addHistogram = func; 686 addHistogram = func;
685 } 687 }
686 688
687 } // namespace chromeos 689 } // namespace chromeos
OLDNEW
« chromeos_update_engine.cc ('K') | « chromeos_update_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698