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

Unified Diff: ui/ui_displayed_event.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ui_ctls.h ('k') | ui/ui_displayed_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ui_displayed_event.h
diff --git a/ui/ui_displayed_event.h b/ui/ui_displayed_event.h
deleted file mode 100644
index 50fe728427e3c7496bd305b01681ff85978697c0..0000000000000000000000000000000000000000
--- a/ui/ui_displayed_event.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2008-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-// This is for Omaha2 backwards compatibility.
-// The installed Omaha3 handoff process sets an event to tell an Omaha2 setup
-// worker running from the temp directory that a UI has been displayed so that
-// the Omaha2 worker will not display a second UI on error. The event's name is
-// passed in an environment variable name by the Omaha2 worker.
-
-#ifndef OMAHA_UI_UI_DISPLAYED_EVENT_H_
-#define OMAHA_UI_UI_DISPLAYED_EVENT_H_
-
-#include <windows.h>
-#include "omaha/base/scoped_any.h"
-
-namespace omaha {
-
-// Manages the UI Displayed Event, which is used to communicate whether a UI
-// has been displayed between processes.
-// This class is not thread safe.
-class UIDisplayedEventManager {
- public:
- // Signals the event. Creates it if its name does not already exist in the
- // environment variable.
- static void SignalEvent(bool is_machine);
-
- private:
- // Creates the event and sets its name in the environment variable.
- static HRESULT CreateEvent(bool is_machine);
-
- // Gets the event from the name in the environment variable.
- static HRESULT GetEvent(bool is_machine, HANDLE* ui_displayed_event);
-
- // Returns whether this process's event handle has been initialized.
- static bool IsEventHandleInitialized();
-
- // A single instance of the UI Displayed Event handle to be used for the
- // lifetime of this process.
- static scoped_handle ui_displayed_event_;
-};
-
-} // namespace omaha
-
-#endif // OMAHA_UI_UI_DISPLAYED_EVENT_H_
« no previous file with comments | « ui/ui_ctls.h ('k') | ui/ui_displayed_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698