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

Side by Side Diff: ceee/ie/plugin/bho/webrequest_notifier.cc

Issue 5258006: Restart of ceee_broker on crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Web request notifier implementation. 5 // Web request notifier implementation.
6 #include "ceee/ie/plugin/bho/webrequest_notifier.h" 6 #include "ceee/ie/plugin/bho/webrequest_notifier.h"
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome_frame/function_stub.h" 10 #include "chrome_frame/function_stub.h"
(...skipping 14 matching lines...) Expand all
25 const char kHttpSendRequestAFunctionName[] = "HttpSendRequestA"; 25 const char kHttpSendRequestAFunctionName[] = "HttpSendRequestA";
26 const char kHttpSendRequestWFunctionName[] = "HttpSendRequestW"; 26 const char kHttpSendRequestWFunctionName[] = "HttpSendRequestW";
27 const char kInternetReadFileFunctionName[] = "InternetReadFile"; 27 const char kInternetReadFileFunctionName[] = "InternetReadFile";
28 28
29 } // namespace 29 } // namespace
30 30
31 WebRequestNotifier::WebRequestNotifier() 31 WebRequestNotifier::WebRequestNotifier()
32 : internet_status_callback_stub_(NULL), 32 : internet_status_callback_stub_(NULL),
33 start_count_(0), 33 start_count_(0),
34 initialize_state_(NOT_INITIALIZED), 34 initialize_state_(NOT_INITIALIZED),
35 webrequest_events_funnel_(new BrokerRpcClient) { 35 webrequest_events_funnel_(new BrokerRpcClient(true)) {
36 } 36 }
37 37
38 WebRequestNotifier::~WebRequestNotifier() { 38 WebRequestNotifier::~WebRequestNotifier() {
39 DCHECK_EQ(start_count_, 0); 39 DCHECK_EQ(start_count_, 0);
40 } 40 }
41 41
42 bool WebRequestNotifier::RequestToStart() { 42 bool WebRequestNotifier::RequestToStart() {
43 { 43 {
44 CComCritSecLock<CComAutoCriticalSection> lock(critical_section_); 44 CComCritSecLock<CComAutoCriticalSection> lock(critical_section_);
45 start_count_++; 45 start_count_++;
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 NOTREACHED(); 803 NOTREACHED();
804 break; 804 break;
805 } 805 }
806 806
807 if (fire_on_error_occurred) { 807 if (fire_on_error_occurred) {
808 webrequest_events_funnel().OnErrorOccurred( 808 webrequest_events_funnel().OnErrorOccurred(
809 info->id, info->url.c_str(), L"", base::Time::Now()); 809 info->id, info->url.c_str(), L"", base::Time::Now());
810 } 810 }
811 info->state = next_state; 811 info->state = next_state;
812 } 812 }
OLDNEW
« no previous file with comments | « ceee/ie/plugin/bho/mediumtest_browser_helper_object.cc ('k') | ceee/ie/testing/mock_broker_and_friends.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698